Skip to content

Commit

Permalink
let's not do that many raycasts for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ari-steas committed Mar 17, 2024
1 parent ef26201 commit e233672
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,16 @@ private double PerformRaycastRecursive(double length)
RemainingImpacts--;
});

if (dist == -1)
//if (dist == -1)
return dist;

double nextDist = PerformRaycastRecursive(length);

if (nextDist == -1)
return dist;

// Get the furthest impact distance.
return Math.Max(dist, nextDist);
//double nextDist = PerformRaycastRecursive(length);
//
//if (nextDist == -1)
// return dist;
//
//// Get the furthest impact distance.
//return Math.Max(dist, nextDist);
}

public Vector3D NextMoveStep = Vector3D.Zero;
Expand Down

0 comments on commit e233672

Please sign in to comment.