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 determine the downward direction relative to a specific rotation. This can be particularly useful in scenarios involving physics calculations, such as applying gravity or determining the orientation of an object in a 3D space.
// Example of using the Down property Rotation rotation = Rotation.FromAxis(Vector3.Up, 45); Vector3 downDirection = rotation.Down; // Use downDirection for further calculations or logic // For example, applying a force in the downward direction ApplyForce(downDirection * gravityStrength);