SceneTrace FromTo( Vector3& from, Vector3& to )
SceneTrace FromTo( Transform& from, Vector3& to )

robot_2Generated
code_blocksInput

Description

The FromTo method in the SceneTrace struct is used to set the start and end positions of a trace request. This method is essential for defining the path along which the trace will be performed, allowing you to specify the exact points in 3D space that the trace should begin and end.

Usage

To use the FromTo method, you need to provide two Vector3 references representing the start and end positions of the trace. This method is typically used in conjunction with other trace configuration methods to fully define the trace parameters before executing it.

Example

// Example usage of the FromTo method
Vector3 startPosition = new Vector3(0, 0, 0);
Vector3 endPosition = new Vector3(10, 0, 0);

SceneTrace trace = new SceneTrace();
trace.FromTo(ref startPosition, ref endPosition);

// Further configuration of the trace can be done here
// ...

// Execute the trace
SceneTraceResult result = trace.Run();