roavatar-renderer
    Preparing search index...

    Class AnimatorWrapper

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    instance: Instance
    className: string = "Animator"
    requiredProperties: string[] = ...

    Accessors

    Methods

    • Loads an animation (not to be confused with an avatar animation like those found on the catalog)

      Parameters

      • id: bigint
      • forceLoop: boolean = false

        Forces animation track to loop

      Returns Promise<Response | AnimationTrack | undefined>

      AnimationTrack on success

    • Loads a new avatar animation (catalog run animation or emote, not to be confused with a creator store animation)

      Parameters

      • id: bigint
      • isEmote: boolean = false
      • forceLoop: boolean = false

        Forces animation track to loop

      Returns Promise<Response | undefined>

      undefined on success

    • Switches to new animation

      Parameters

      • name: string

        Animation name, such as "idle", "walk", "emote.1234" or "id.1234"

      • type: "mood" | "main" | "tool" = "main"

      Returns boolean

      If animation sucessfully played

    • Renders animation pose

      Parameters

      • addTime: number = ...

        Time to add to the current time

      • OptionalforceTime: number

        Time to force animation to be at, -1 is in the middle of the animation

      • OptionalforceKeyframe: number

        Keyframe to force animation to be at

      Returns void

    • Resets all joints in the rig to be in their rest pose

      Parameters

      • includeMotors: boolean = true

        If motors (body movement joints) should be set to rest pose

      • includeFACS: boolean = true

        If FACS (face movement bones) should be set to rest pose

      Returns void