Hello,
I want to simulate the trajectory of a missile. So I use a simple rigidbody object and use applyCentralForce to make the missile fly. But I am woundering if bullet is able to simulate the trajectory of my missile, so that the "nose" of it turns down because of the gravity.
At the moment the missle is not turning around its centroid, but it is simply falling down on the ground wth the same angle it was starting.
Is it not possible to simulate this automaticly with bullet?
Thanks for help,
Fred_FS
trajectory of a missile
-
robagar
- Posts: 48
- Joined: Fri May 21, 2010 1:49 am
Re: trajectory of a missile
I'd guess a missile's nose turns not because of gravity, but because the fins at the back apply a force if the missile's not flying straight along it's axis (like an arrow). Calculate the missile's velocity in local coordinates, and add a force to the tail which acts against the x & y components, assuming z is forwards.