Flèches droites peuvent changer d'angle #7

Merged
MaximilienBB merged 8 commits from origin/feature/StraightArrowChangesAngle into main 2025-05-30 23:42:35 +00:00
Showing only changes of commit 6b2fe4738d - Show all commits

View File

@ -76,7 +76,7 @@ public class Projectile : MonoBehaviour
}
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);