ptotheaul Posted April 20, 2016 Share Posted April 20, 2016 I'm trying to simulate a ball coming at the screen with a projectile motion arc in 2d space. Does anyone know where there is a tutorial or equations to deal with this. I would image the equation would need to take in the vertical and horizontal angles of the projectile as well as it' initial velocity and the desired start and end scale of the projectile. Any ideas? Link to comment Share on other sites More sharing options...
Rybar Posted April 21, 2016 Share Posted April 21, 2016 Here's a good starting point: You'd basically do the math as described and pass the results of your z-axis calculations to a phaser sprite's scale and position. Velocity + gravity should give you the arc you're after. Link to comment Share on other sites More sharing options...
Recommended Posts