Node.GetWorldMatrix

Node.GetWorldMatrix method

Gets the world matrix of this node in a given animation at a given time.

public Matrix4x4 GetWorldMatrix(Animation animation, float time)
ParameterTypeDescription
animationAnimationthe animation to sample.
timeSinglethe time offset within the animation.

Return Value

the sampled transform.

Remarks

This is a convenience method, but it’s slow, it’s better to cache GetCurveSamplers.

See Also