Shooting bullets

noatom
Posts: 12
Joined: Thu Nov 08, 2012 2:03 pm

Shooting bullets

Post by noatom »

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?
mdias
Posts: 12
Joined: Thu Jun 28, 2012 2:21 pm

Re: Shooting bullets

Post by mdias »

You should cast a ray, otherwise you'll probably get missing bullets because of tuneling.

http://bulletphysics.org/mediawiki-1.5. ... ng_RayTest