rhodonite
    Preparing search index...

    Class GlobalRetargetReverse

    Global retarget reverse implementation for animation retargeting. This class handles the reverse retargeting of animations from source to destination entities with global coordinate system considerations and 180-degree rotation reversal.

    Implements

    Index
    __rev: Quaternion = ...
    • Gets the parent global rest quaternion for the destination entity. This method traverses up the hierarchy to find the parent's rest rotation for entities that have VRM components.

      Parameters

      • dstEntity: ISceneGraphEntity

        The destination entity to get parent global rest quaternion for

      Returns IQuaternion

      The parent global rest quaternion, or identity quaternion if no parent exists

    • Gets the parent global rest quaternion for the source entity. This method traverses up the hierarchy to find the parent's rest rotation for entities that have VRM components.

      Parameters

      • srcEntity: ISceneGraphEntity

        The source entity to get parent global rest quaternion for

      Returns IQuaternion

      The parent global rest quaternion, or identity quaternion if no parent exists

    • Retargets the quaternion rotation from source entity to destination entity. This method extracts the global animation quaternion from the source entity, then applies it to the destination entity's local coordinate system with a 180-degree Y-axis rotation reversal.

      Parameters

      • dstEntity: ISceneGraphEntity

        The destination entity to apply the retargeted rotation to

      Returns IQuaternion

      The retargeted quaternion with reverse rotation applied

    • Retargets the scale from source entity to destination entity. Currently, this method simply returns the source entity's local scale without any modifications or transformations.

      Parameters

      Returns IVector3

      The source entity's local scale vector

    • Retargets the translation from source entity to destination entity. This method extracts the global animation translation from the source entity, scales it according to the destination entity's proportions, then applies a 180-degree Y-axis rotation reversal.

      Parameters

      • dstEntity: ISceneGraphEntity

        The destination entity to apply the retargeted translation to

      Returns IVector3

      The retargeted translation vector with reverse rotation applied