/**
 * Returns a prefab node
 * @example
 * ```
 * const cube = getPrefab({
 *  p: [0, 0, 5],
 *  s: [1, 1, 1],
 *  r: [0, 0, 0],
 *  id: 'ancient_cube_01',
 * });
 * ```
 */
export const getPrefab = (opt = {}) => {
    const node = {
        prefabId: opt.id ?? 'cube_01',
        transform: {
            pos: opt.p,
            scale: opt.s,
            rot: opt.r,
        },
        material: opt.material,
        name: opt.name,
        children: opt.children ?? [],
    };
    return node;
};
//# sourceMappingURL=getPrefab.js.map