diff --git a/Assets/Scripts/Model/Runtime/Projectiles/ArchToTileProjectile.cs b/Assets/Scripts/Model/Runtime/Projectiles/ArchToTileProjectile.cs index c37ed0218..36fb82b21 100644 --- a/Assets/Scripts/Model/Runtime/Projectiles/ArchToTileProjectile.cs +++ b/Assets/Scripts/Model/Runtime/Projectiles/ArchToTileProjectile.cs @@ -29,12 +29,14 @@ protected override void UpdateImpl(float deltaTime, float time) /////////////////////////////////////// // Insert you code here /////////////////////////////////////// - - + float maxHeight = totalDistance * 0.6f; + Debug.Log(maxHeight); + localHeight = maxHeight * (-(t * 2 - 1) * (t * 2 - 1) + 1); + Debug.Log(localHeight); /////////////////////////////////////// // End of the code to insert /////////////////////////////////////// - + Height = localHeight; if (time > StartTime + _timeToTarget) Hit(_target);