Actualiser Assets/Scripts/Projectile.cs

This commit is contained in:
MaximilienBB 2025-05-30 22:31:34 +00:00
parent b98eeb70aa
commit 6b2fe4738d

View File

@ -76,7 +76,7 @@ public class Projectile : MonoBehaviour
} }
float x = _speedTime; float x = _speedTime;
float y = (_angle*-Mathf.Pow(x, 2) + _destinationX * x) float y = (_angle*-Mathf.Pow(x, 2) + _destinationX * x);
transform.position = new Vector2(_initialX + x*_angle, _initialY + y); transform.position = new Vector2(_initialX + x*_angle, _initialY + y);