The pitch
field represents the pitch component of an Angles
structure, which typically corresponds to the up/down rotation in Euler angles. It is a public, non-static field of type System.Single
(float).
The pitch
field represents the pitch component of an Angles
structure, which typically corresponds to the up/down rotation in Euler angles. It is a public, non-static field of type System.Single
(float).
Use the pitch
field to directly access or modify the pitch component of an Angles
instance. This field is useful when you need to adjust or retrieve the up/down rotation angle of an object in a 3D space.
// Example of using the pitch field Angles myAngles = new Angles(); myAngles.pitch = 45.0f; // Set the pitch to 45 degrees // Accessing the pitch value float currentPitch = myAngles.pitch; // Using pitch in a method Angles newAngles = myAngles.WithPitch(30.0f); // Create a new Angles with a modified pitch