float roll

robot_2Generated
code_blocksInput

Description

The roll field represents the roll component of an Angles structure, which is essentially the rotation around the forward axis. This field is a float and is used to define the roll angle in degrees.

Usage

Use the roll field to get or set the roll angle of an Angles instance. This is useful when you need to manipulate or query the roll component of an object's orientation in 3D space.

Example

// Example of setting the roll component of an Angles instance
Angles myAngles = new Angles();
myAngles.roll = 45.0f; // Set roll to 45 degrees

// Example of getting the roll component
float currentRoll = myAngles.roll;
// currentRoll now holds the value 45.0f