API

Function createAnimationController

  • Create a skeleton animation controller from parsed glTF animation data. Returns a tick function that advances the animation and uploads bone matrices.

    Parameters

    • clip: AnimationClip
    • nodes: readonly NodeRest[]
    • skeletons: readonly SkeletonBinding[]
    • morphBindings: readonly MorphBinding[]
    • OptionalnodeTargets: readonly (AnimatedNodeTarget | undefined)[]
    • OptionalexcludedNodeIndices: ReadonlySet<number>

    Returns AnimationController

  • Create a skeleton animation controller from parsed glTF animation data. Returns a tick function that advances the animation and uploads bone matrices.

    Parameters

    • clip: AnimationClip
    • nodes: readonly NodeRest[]
    • skeletons: readonly SkeletonBinding[]
    • morphBindings: readonly MorphBinding[]
    • nodeTargets: readonly (AnimatedNodeTarget | undefined)[] | undefined
    • excludedNodeIndices: ReadonlySet<number> | undefined
    • boneOverrides: ReadonlyMap<number, unknown> | undefined

    Returns AnimationController

  • Create a skeleton animation controller from parsed glTF animation data. Returns a tick function that advances the animation and uploads bone matrices.

    Parameters

    • clip: AnimationClip
    • nodes: readonly NodeRest[]
    • skeletons: readonly SkeletonBinding[]
    • morphBindings: readonly MorphBinding[]
    • nodeTargets: readonly (AnimatedNodeTarget | undefined)[] | undefined
    • excludedNodeIndices: ReadonlySet<number> | undefined
    • boneOverrides: ReadonlyMap<number, unknown> | undefined
    • OptionalnodeNames: readonly (string | undefined)[]

    Returns AnimationController