I want to get all gameObjects from point A to point B, but didn’t find LinecastAll in scripting API.
Now I use this method, maybe it’s not fine…
Vector3 point_A;
Vector3 point_B;
while ( Physics.Linecast ( point_A, point_B, out hitInfo ) )
{
point_A = hitInfo.point + (point_B - point_A) * 0.1f;
}
Is there any other way?
Thankes!