I've been playing around with bullet for a few weeks now. I must say that it looks pretty damn good - both easy to use, and seems very powerful and high-performing.
Anyway, I'm still in technical demo stage. I'd like to consult on what's the best way to handle bullets (like: gun's bullets, now Bullet Physics Engine
. I can think of two alternatives:
1. Use rayTrace() (or some other equivalent)
This has the advantage of not needing to add an object to the world, and the high speed of a bullet fired into the air won't confuse Bullet engine
However, I'm not sure how (and if possible) to retrieve the relative position of the hit in the object (to know if it was a headshot, for instance)
2. Add a bullet object to the world and listen to collision events
This is the advantage of being able to know where the object was hit, and to be able to move dynamic objects as a result of the hit (like boxes, etc)
However, I'm not sure if Bullet Engine is supposed to handle such quick (and small) objects moving around the world. Is it?
Thanks a lot!