Description
The Left
property of the Transform
struct provides a Vector3
representing the left direction relative to the transform's current orientation. This property is useful for determining the leftward direction in the local space of the transform, which can be used for various calculations such as movement or alignment in 3D space.
Usage
To access the Left
property, you need an instance of the Transform
struct. The property is read-only and returns a Vector3
that represents the left direction based on the transform's current rotation.
Example usage:
Transform myTransform = new Transform();
Vector3 leftDirection = myTransform.Left;
// Use leftDirection for further calculations or operations
Example
Transform myTransform = new Transform();
Vector3 leftDirection = myTransform.Left;
// Use leftDirection for further calculations or operations