Spacetime-Meta / spacetime-sdk

The spacetime-sdk is a turnkey virtual environment package for building in the Spacetime Metaverse
https://www.spacetimemeta.io/metaverse/spawn-planet
MIT License
11 stars 2 forks source link

Animation import update #189

Closed Liquid-Blocks closed 2 years ago

Liquid-Blocks commented 2 years ago

Overview

When adding a custom avatar to a world created with the sdk, it should be possible for the users to hide the default avatars and set the new avatar as the default one.

This issue should also take care of the alignment disparity depending on the source. This problem occur since the mixamo avatars have their origin at the goin instead of the feet.

Specifications

in the config files, create new options to control the avatars, the new options should be something like:

avatar: {
  hideDefault: boolean,
  defaultAvatar: {
    name,
    mesh,
    animations,
    animationMap
  },
  customAvatars: [
    {
        name,
        mesh,
        animations,
        animationMap
    },
    {
        name,
        mesh,
        animations,
        animationMap
    },
  ],
}

This will allow full customization of avatars without calling any methods.

Anything else?

No response