Description
The Down
property of the Rotation
struct provides the downwards direction vector of the current rotation. This is useful for determining the direction that is opposite to the upwards direction, which can be particularly helpful in 3D space calculations, such as physics simulations or camera controls.
Usage
To access the downwards direction of a Rotation
instance, simply use the Down
property. This will return a Vector3
representing the downwards direction based on the current rotation.
Example
// Example of using the Down property
Rotation rotation = Rotation.FromAxis(Vector3.Up, 45);
Vector3 downDirection = rotation.Down;
// downDirection now holds the vector pointing downwards relative to the rotation.