Narrow Phase Callback?

thePoet
Posts: 17
Joined: Tue Apr 15, 2008 4:14 pm

Narrow Phase Callback?

Post by thePoet »

I have a situation where I need to do something special in the system if the collision occurs. I have an overridden needsResponse call, which is accurate enough to detect overlapping objects for our needs and trigger events back into our system, however, we have a few cases where we need to know if the objects have actually collided. Is there a callback somewhere that can be hooked into to detect this?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Narrow Phase Callback?

Post by Erwin Coumans »

The best way is to iterate once over all contact manifolds. See CollisionInterfaceDemo how to do this.

Hope this helps,
Erwin
thePoet
Posts: 17
Joined: Tue Apr 15, 2008 4:14 pm

Re: Narrow Phase Callback?

Post by thePoet »

Thanks for the help. I'll look deeper into that.

I read somewhere in the forum that there may be a callback for this in 2. Is that still a possibility?