diff --git a/Assets/Scripts/Interceptors/Hydra70.cs b/Assets/Scripts/Interceptors/Hydra70.cs index c8abcd8..be8030c 100644 --- a/Assets/Scripts/Interceptors/Hydra70.cs +++ b/Assets/Scripts/Interceptors/Hydra70.cs @@ -26,7 +26,7 @@ public class Hydra70 : Missile { Vector3 accelerationInput = Vector3.zero; // Calculate and set the total acceleration - Vector3 acceleration = CalculateAcceleration(accelerationInput, compensateForGravity: true); + Vector3 acceleration = CalculateAcceleration(accelerationInput); GetComponent().AddForce(acceleration, ForceMode.Acceleration); _acceleration = acceleration; } diff --git a/Assets/Scripts/Missile.cs b/Assets/Scripts/Missile.cs index 769d2bd..efb66ea 100644 --- a/Assets/Scripts/Missile.cs +++ b/Assets/Scripts/Missile.cs @@ -59,7 +59,7 @@ public class Missile : Agent } - protected Vector3 CalculateAcceleration(Vector3 accelerationInput, bool compensateForGravity = true) + protected Vector3 CalculateAcceleration(Vector3 accelerationInput, bool compensateForGravity = false) { Vector3 gravity = Physics.gravity; if (compensateForGravity)