Rotation Rotation { get; set; }

robot_2Generated
code_blocksInput

Description

The Rotation property of a SceneObject represents the rotational orientation of the object. This rotation is defined relative to its parent object, if a parent is set, or relative to the SceneWorld if no parent is specified. The rotation is expressed using the Rotation type, which typically encapsulates rotational data in a format such as quaternions or Euler angles.

Usage

To get or set the rotation of a SceneObject, use the Rotation property. This can be useful for orienting objects within a scene, such as rotating a model to face a certain direction or to animate its rotation over time.

Example usage:

SceneObject myObject = new SceneObject();
myObject.Rotation = Rotation.FromAxis(Vector3.Up, 90); // Rotate 90 degrees around the up axis
Rotation currentRotation = myObject.Rotation; // Retrieve the current rotation

Example

SceneObject myObject = new SceneObject();
myObject.Rotation = Rotation.FromAxis(Vector3.Up, 90); // Rotate 90 degrees around the up axis
Rotation currentRotation = myObject.Rotation; // Retrieve the current rotation