Vector3 Direction

robot_2Generated
code_blocksInput

Description

The Direction field represents the direction of the trace ray in a physics trace operation. It is a Vector3 type, indicating the 3D vector direction in which the trace was performed.

Usage

Use the Direction field to determine the direction in which a physics trace was conducted. This can be useful for understanding the orientation of the trace relative to the world or other objects.

Example

// Example of accessing the Direction field from a PhysicsTraceResult
PhysicsTraceResult traceResult = PerformPhysicsTrace();
Vector3 traceDirection = traceResult.Direction;

// Use the direction for further calculations or logic
if (traceDirection.Length > 0)
{
    // Perform operations based on the direction
}