The Rotation
property of the GameTransform
class represents the rotation of a game object in world coordinates. This property is marked as obsolete, and it is recommended to use WorldRotation
instead.
The Rotation
property of the GameTransform
class represents the rotation of a game object in world coordinates. This property is marked as obsolete, and it is recommended to use WorldRotation
instead.
To access the rotation of a game object in world coordinates, use the WorldRotation
property instead of Rotation
. The Rotation
property is maintained for backward compatibility but is not recommended for use in new code.
// Example of accessing the rotation of a GameTransform GameTransform transform = new GameTransform(); // Obsolete usage Rotation rotation = transform.Rotation; // Not recommended // Recommended usage Rotation worldRotation = transform.WorldRotation;