Documentation

Unity Engine

Download Unity

Unity Engine

TransformPosition(int, float3)

Transforms a position in local space to character space. You can perform the opposite conversion, from character to local space using AnimationStream.InverseTransformPosition.
Read time 1 minuteLast updated 4 hours ago

Definition

public readonly float3 TransformPosition(int index, float3 position)

Parameters

index

The index of the bone in Skeleton.Ids, for example from Skeleton.FindBoneIndex.

position

The position in local space to transform.

Returns

Type

Description

float3The position in character space.