Actualiser Assets/Scripts/Projectile.cs
This commit is contained in:
parent
b98eeb70aa
commit
6b2fe4738d
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user