Handles loading and instantiating avatar models from various sources. Provides functionality to find and extract important parts of an avatar (head, hands).

Debug mode can be enabled with the URL parameter ?debugavatar, which will log detailed information about avatar loading and configuration.

Constructors

Methods

  • Retrieves or creates a new avatar instance from an ID or existing Object3D.

    Parameters

    • context: Context

      The application context

    • avatarId: string | Object3D<Object3DEventMap>

      Either a string ID to load an avatar or an existing Object3D to use as avatar

    Returns Promise<null | AvatarModel>

    Promise resolving to an AvatarModel if successful, or null if failed

MMNEPVFCICPMFPCPTTAAATR