From e2336721c1ac0780f24ba7f598418527678104a4 Mon Sep 17 00:00:00 2001 From: Aristeas <94058548+Jnick-24@users.noreply.github.com> Date: Sat, 16 Mar 2024 20:21:44 -0500 Subject: [PATCH] let's not do that many raycasts for now --- .../HeartModule/Projectiles/Projectile.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Orrery Combat Framework - Heart Module/Data/Scripts/HeartModule/Projectiles/Projectile.cs b/Orrery Combat Framework - Heart Module/Data/Scripts/HeartModule/Projectiles/Projectile.cs index b2e29d4..9fc21c6 100644 --- a/Orrery Combat Framework - Heart Module/Data/Scripts/HeartModule/Projectiles/Projectile.cs +++ b/Orrery Combat Framework - Heart Module/Data/Scripts/HeartModule/Projectiles/Projectile.cs @@ -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;