Rotation Rotation { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Rotation property of a SceneObject represents the orientation of the object in the scene. This rotation is relative to the object's parent, if it has one, or to the SceneWorld if no parent is set. The rotation is defined using the Rotation type, which typically encapsulates a quaternion or Euler angles to represent 3D rotations.

Usage

To get or set the rotation of a SceneObject, you can use the Rotation property. This property allows you to manipulate the orientation of the object within the scene, which can be useful for animations, aligning objects, or setting up initial orientations.

Example usage:

SceneObject myObject = new SceneObject();
myObject.Rotation = Rotation.FromAxis(Vector3.Up, 45.0f); // Rotates the object 45 degrees around the up axis

Example

SceneObject myObject = new SceneObject();
myObject.Rotation = Rotation.FromAxis(Vector3.Up, 45.0f); // Rotates the object 45 degrees around the up axis