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 accessed via the Up
property.
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 accessed via the Up
property.
Use the Down
property when you need to calculate or apply transformations based on the downward direction of an object in 3D space. This property returns a Vector3
representing the downward direction relative to the current rotation.
// Example of using the Down property Rotation rotation = Rotation.From(45, 30, 0); Vector3 downDirection = rotation.Down; // Use downDirection for further calculations or transformations // For example, applying a force in the downward direction Vector3 force = downDirection * 9.81f; // Assuming a gravity-like force