GetLocalToCharacterTR(int, out float3, out quaternion)
Returns the local to character translation and rotation of the bone at the specified index.
Read time 1 minuteLast updated 5 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
GetLocalToCharacterTR(int, float3, quaternion)
public readonly void GetLocalToCharacterTR(int index, out float3 translation, out quaternion rotation)
Parameters
The index of the bone in Skeleton.Ids, for example from Skeleton.FindBoneIndex.
The local to character translation.
The local to character rotation of the bone.
Remarks
The index must be at least 0 and less than AnimationStream.BoneCount.
When a bone above this bone has a non-uniform scale, the rotation in character space is an approximation. The translation is exact. The combined transform shears, and a rotation can't represent a shear. To get the exact transform, use AnimationStream.GetLocalToCharacterMatrix.