Description
The Down
property of the Transform
struct provides a Vector3
representing the downward direction relative to the transform's current orientation. This is typically used in 3D space to determine the direction that is opposite to the Up
direction.
Usage
Use the Down
property when you need to calculate or apply transformations that involve the downward direction in the local space of an object. This can be useful for physics calculations, such as applying gravity or determining the direction of a downward force.
Example
// Example of using the Down property
Transform transform = new Transform();
Vector3 downDirection = transform.Down;
// Use downDirection for applying a force or movement
Vector3 force = downDirection * 9.81f; // Simulating gravity
// Apply the force to an object
// object.ApplyForce(force);