Hi guys, any idea how to make throwing granades?
Add Bullet behaviour to Sprite object and set gravity?
Then on spawn, rotate to the angle you want it to travel.
Is that what you mean?
I want to be able to throw it at particular point, retaining that bow shape trajectory typical for thrown objects.
<img src="http://img199.imageshack.us/img199/4877/2kua.jpg" border="0" />
I would also love to know this! I have hacked about by changing the angle of motion in relation to the distance and angle of the target, and while it works, it never works exactly right. I would like to know the formula for this.
I use physics, but I don't know how to set it up the way that would feel natural. Atm the further the target is the faster the grenade flies trough the which is awkward
Develop games in your browser. Powerful, performant & highly capable.
megatronx
have alook
scirra.com/forum/parabola-tracjectory-tracing-with-physics-box2d_topic61895_page2.html
Thanks