import { avatars, } from '@hiberworld/code-kit';
/**
 * Get a dummy
 * @example
 * ```
  addTo(root, getDummy({ avatar: 'red_robot', emot: 'an_default_emote_shuffledance' }));
 * ```
 */
export const getDummy = (opt = {}) => {
    let { mesh: meshID } = opt;
    const { emot = 'an_default_idle', speed = 1, material, avatar = 'hibert_no_emoji', name, ...rest } = opt;
    meshID = meshID ?? avatars[avatar].meshID;
    const materialID = avatars[avatar].materialID;
    const collider = {
        collider: {
            meshId: meshID,
        },
    };
    const skinnedAnimation = {
        animationID: emot,
        animationSpeed: speed,
        skeletonGroupID: 'skg_default',
    };
    const node = {
        name,
        rendering: {
            meshID,
            materialID,
        },
        collider,
        skinnedAnimation,
        transform: {
            pos: rest.p,
            scale: rest.s,
            rot: rest.r,
        },
    };
    return node;
};
//# sourceMappingURL=getDummy.js.map