Represents an avatar model with head and hands references. Used for representing characters in 3D space.

Constructors

Properties

Accessors

Constructors

  • Creates a new avatar model.

    Parameters

    • root: Object3D

      The root object of the avatar

    • head: Object3D

      The head object of the avatar

    • leftHand: null | Object3D<Object3DEventMap>

      The left hand object of the avatar

    • rigthHand: null | Object3D<Object3DEventMap>

      The right hand object of the avatar

    Returns AvatarModel

Properties

head: Object3D

The head object of the avatar model

leftHand: null | Object3D<Object3DEventMap>

The left hand object of the avatar model, if available

rigthHand: null | Object3D<Object3DEventMap>

The right hand object of the avatar model, if available

root: Object3D

The root object of the avatar model

Accessors

  • get isValid(): boolean

    Checks if the avatar model has a valid configuration. An avatar is considered valid if it has a head.

    Returns boolean

    Whether the avatar has a valid setup