|
static bool AVR.Core.Utils.Phys.PathCast |
( |
Vector3[] |
positions, |
|
|
out RaycastHit |
hit, |
|
|
LayerMask |
mask |
|
) |
| |
|
inlinestatic |
Perform linecasts along a spline of positions.
- Parameters
-
positions | List of positions. Linecasts will be performed for each pair of subsequent points |
hit | RaycastHit of the first hit encountered. |
mask | Mask passed to the Linecast function. |
- Returns
- True if something is hit, otherwise false.
Definition at line 118 of file AVR_Utils.cs.
120 for ( int i = 0; i < positions.Length - 1; i++)
122 if (Physics.Linecast(positions[i], positions[i + 1], out hit, mask))
127 hit = new RaycastHit();
|