So consider this:
I have a rigid body and a weapon,and I will fire that weapon.
Should I make a box shape for the bullet,or something else?
And how do I know when my bullet is touching that rigid body?
Shooting bullets
-
- Posts: 12
- Joined: Thu Jun 28, 2012 2:21 pm
Re: Shooting bullets
You should cast a ray, otherwise you'll probably get missing bullets because of tuneling.
http://bulletphysics.org/mediawiki-1.5. ... ng_RayTest
http://bulletphysics.org/mediawiki-1.5. ... ng_RayTest