TransformPositionRotation(int, ref float3, ref quaternion)
Transforms a position and rotation in local space to character space. You can perform the opposite conversion, from character to local space using AnimationStream.InverseTransformPositionRotation.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
TransformPositionRotation(int, float3, quaternion)
public readonly void TransformPositionRotation(int index, ref float3 position, ref quaternion rotation)
Parameters
The index of the bone in Skeleton.Ids, for example from Skeleton.FindBoneIndex.
The position in local space to transform.
The rotation in local space to transform.