/**
 * Get a group object
 * @example
 * ```
 *
 let grp = getGroup({ p: [0, 2, 5], r: [45, 0, 0] });
addTo(grp, getPrefab({ id: 'ancient_urns_01' }));
addTo(grp, getPrefab({ id: 'ancient_urns_01', p: [0, 0, 1] }));
addTo(root, grp);
 * ```
 */
export const getGroup = (opt) => {
    const obj = {
        name: opt?.name,
        transform: {
            pos: opt?.p,
            scale: opt?.s,
            rot: opt?.r,
        },
        children: opt?.children ?? [],
    };
    return obj;
};
//# sourceMappingURL=getGroup.js.map