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