rhodonite
    Preparing search index...

    Class AnimationAssigner

    Index

    Constructors

    Methods

    • Assigns animation data from a glTF model to a root entity with optional retargeting. This method handles both same-skeleton and cross-skeleton animation assignment.

      Parameters

      • rootEntity: ISceneGraphEntity

        The root entity of the model to which animation will be assigned

      • gltfModel: RnM2

        The glTF model containing animation data

      • vrmModel: Vrm0x | VRM | Vrm1

        The corresponding VRM model that provides humanoid bone mapping

      • isSameSkeleton: boolean

        Whether the source and target skeletons are identical

      • retargetMode: RetargetMode

        The retargeting mode: 'none' for direct assignment, 'global' for global retargeting, 'absolute' for absolute animation

      Returns ISceneGraphEntity

      The root entity with assigned animations

    • Assigns animation data from a VRMA (VRM Animation) model to a root entity. This method specifically handles VRM animation format with humanoid bone mapping.

      Parameters

      • rootEntity: ISceneGraphEntity

        The root entity of the model to which animation will be assigned

      • vrmaModel: RnM2Vrma

        The VRMA model containing animation data and humanoid bone mappings

      • OptionalpostfixToTrackName: string

        Optional postfix to append to animation track names for identification

      Returns string[]

      An array of animation track names that were created