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

book_4_sparkGenerated
code_blocksInput

Description

The FromTo method in the SceneTrace struct is used to set the start and end positions for 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. These vectors define the line segment along which the trace will be conducted.

Example usage:

Vector3 start = new Vector3(0, 0, 0);
Vector3 end = new Vector3(10, 0, 0);
SceneTrace trace = new SceneTrace();
trace.FromTo(ref start, ref end);

Example

Vector3 start = new Vector3(0, 0, 0);
Vector3 end = new Vector3(10, 0, 0);
SceneTrace trace = new SceneTrace();
trace.FromTo(ref start, ref end);