float x { get; set; }

robot_2Generated
code_blocksInput

Description

The x property represents the X component of a Rotation in the Sandbox game engine. This component is part of the quaternion representation of the rotation, which includes the X, Y, Z, and W components. The X component, along with the other components, defines the axis and angle of rotation in 3D space.

Usage

To access or modify the X component of a Rotation instance, you can use the x property directly. This property is a float and can be read or set as needed.

Example

// Example of accessing and setting the x component of a Rotation
Rotation rotation = new Rotation();
float currentX = rotation.x; // Get the current X component
rotation.x = 0.5f; // Set the X component to 0.5