Vector3 StartPosition

book_4_sparkGenerated
code_blocksInput

Description

The StartPosition field represents the initial position of a trace operation within a scene. It is a Vector3 type, indicating the 3D coordinates where the trace begins. This field is read-only and is included in the action graph for trace operations.

Usage

Use the StartPosition field to determine where a trace operation starts in the 3D space of a scene. This can be useful for debugging or for understanding the path of a trace when analyzing trace results.

Example

// Example of accessing the StartPosition field
SceneTraceResult traceResult = SceneTraceResult.From(scene, trace);
Vector3 startPosition = traceResult.StartPosition;

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