I noticed some new rigidbody flags for collision detection methods in unity 3 so I am playing around with it now but was curious if anyone has tried to make a bullet with the new collision routines.
I added a rendertrailer to my bullet sphere and notice that the bullets are ricocheting around the static level mesh as opposed to calling 'OnCollisionEnter' when it ricochets... I guess we still have to do a raycast on a per frame basis?
The docs don't really give many details about the implementation of each flag: ContinuousDynamic, Dynamic, and Discrete.
So it is still better to mark a bullet as Discrete and raycast old -> new position each frame?
asked Oct 06 '10 at 07:31 PM
Your walls also have to be set to ContinuousCollisionDetection. Dynamic CCD is for moving objects and CCD is for any objects that they can collide with.
answered Feb 27 '11 at 02:52 PM
I just started with unity, and don't fully understand the question, but are you trying to stop the bullet or handle a bullet collision ?
I wanted to stop projectiles into a wall, so I added a box collider to my wall, then looked for projectile collisions using tags:
answered Oct 11 '10 at 07:20 PM