Description
The InterpolatedLocal
property of the GameTransform
class provides access to the current interpolated local transform of a game object. This property is useful for obtaining the transform that is being interpolated over time, which can be particularly useful in scenarios involving smooth transitions or animations.
Usage
To access the InterpolatedLocal
property, you need to have an instance of the GameTransform
class. This property is read-only and returns a Transform
object representing the interpolated local transform.
Example
// Assuming 'gameTransform' is an instance of GameTransform
Transform interpolatedTransform = gameTransform.InterpolatedLocal;
// Use the interpolated transform for further operations
Vector3 position = interpolatedTransform.Position;
Rotation rotation = interpolatedTransform.Rotation;