Ignore collision on contactsProcess()

deadvirus

25-08-2009 16:06:01

Hey,
I have some shots hitting my airplanes in my game, I use the contactcallback to detect the hit and delete the shot. the problem is that they hit the plane a bit hard... is there any way to ignore the collision effects in the contactsProcess() call? Or if not ignore completly, make it more soft...

I know I could just return 0 on the onAABBOverlap() but this is not a precise hit...

The way I'm doing for now, is going through each contact and remove it, this works, but I think that there should be a more performance friendly way to do it...

By the way, I'm using Newton 2.08.