Vector3 Direction

book_4_sparkGenerated
code_blocksInput

Description

The Direction field in the PhysicsTraceResult struct represents the direction of the trace ray. It is a Vector3 type, indicating the vector direction in which the trace was performed.

Usage

Use the Direction field to determine the vector direction of the trace ray. This can be useful for understanding the orientation of the trace in 3D space, especially when analyzing the results of a physics trace operation.

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
}