rhodonite
    Preparing search index...

    Class GlobalRetarget

    Global retargeting implementation for animation retargeting. This class handles retargeting of animations from one entity to another using global space transformations.

    Implements

    Index
    • Gets the parent's global rest quaternion for the destination entity. This is used to transform from global space to local space for the destination.

      Parameters

      • dstEntity: ISceneGraphEntity

        The destination entity to get parent global rest quaternion for

      Returns IQuaternion

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

    • Gets the parent's global rest quaternion for the source entity. This is used to transform from local space to global space for the source.

      Parameters

      • srcEntity: ISceneGraphEntity

        The source entity to get parent global rest quaternion for

      Returns IQuaternion

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

    • Retargets rotation from the source entity to the destination entity. The method extracts the global animation quaternion from the source and applies it to the destination.

      Parameters

      • dstEntity: ISceneGraphEntity

        The destination entity to apply the retargeted rotation to

      Returns IQuaternion

      The retargeted local rotation quaternion for the destination entity

    • Retargets scale from the source entity to the destination entity. Currently returns the source entity's local scale directly without modification.

      Parameters

      Returns IVector3

      The source entity's local scale vector

    • Retargets translation from the source entity to the destination entity. The method extracts the global animation translation from the source, scales it appropriately, and applies it to the destination entity.

      Parameters

      • dstEntity: ISceneGraphEntity

        The destination entity to apply the retargeted translation to

      Returns IVector3

      The retargeted local position vector for the destination entity