Documentation

Unity Engine

Download Unity

Unity Engine

GetLocalToParentTR(int, out float3, out quaternion)

Returns the local to parent translation and rotation of the bone at the specified index.
Read time 1 minuteLast updated 4 hours ago

Definition

GetLocalToParentTR(int, float3, quaternion)

public readonly void GetLocalToParentTR(int index, out float3 translation, out quaternion rotation)

Parameters

index

The index of the translation, rotation, and scale channels. The first Skeleton.BoneCount channels of each kind are the bones, in the order of Skeleton.Ids.

translation

The local to parent bone translation.

rotation

The local to parent rotation of the bone.