How to move object parabolic projectile path

I need to transform a sphere in a parabolic projectile path. I know the height and distance the projectile should go. I don’t know the velocity and projection angle. Is there a sample code showing how to do this?

1 Like

3 Answers

3

Aldo does great answers on this, to questions usually under the title cannonball! Here are some links for you to check out. Although they are physics-based, you can use the equations or study the techniques to achieve this :

I also wrote a blog post on this topic. It shows code that adds an arc (using the parabolic equation) to otherwise straight motion. It also shows how to make your sprite point in the direction it’s going (in case it’s something like an arrow, not round like a cannonball).

http://luminaryapps.com/blog/arcing-projectiles-in-unity/

I hope this proves useful to somebody!

This is very helpful, thank you.

JoeStrout website is faulty. Hope you save somewhere. If you can share it for yourself? I'm in need :(

Apologies to all for the broken link. I've corrected it now.

try this I hope it will help you