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.
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.
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 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 }