Vector3 StartPosition

robot_2Generated
code_blocksInput

Description

The StartPosition field represents the initial position of a physics trace in the 3D space. It is a Vector3 type, which means it contains three float values corresponding to the X, Y, and Z coordinates. This field is part of the PhysicsTraceResult struct, which is used to store the results of a physics trace operation in the Sandbox environment.

Usage

Use the StartPosition field to determine where a physics trace began. This can be useful for debugging or for calculating the trajectory of a trace. The field is public and non-static, meaning it can be accessed directly from an instance of PhysicsTraceResult.

Example

// Example of accessing the StartPosition field from a PhysicsTraceResult instance
PhysicsTraceResult traceResult = PerformPhysicsTrace();
Vector3 startPosition = traceResult.StartPosition;

// Use the startPosition for further calculations or debugging
Debug.Log($"Trace started at: {startPosition}");