Tons of collisions

ChaoX
Posts: 2
Joined: Sat Dec 06, 2008 8:22 pm

Tons of collisions

Post by ChaoX »

Hello

There is a problem: when an object falls down on another static object and stays on it, I get terrible lugs due to hundreds of collision callbacks handling (I use a gContactAddedCallback). Configuring sleeping thresholds didn't help. Sure there is a way to avoid this problem, but I can't find it. How does this problem should be solved?

Thanks.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Tons of collisions

Post by Erwin Coumans »

It is better to iterate over contact manifolds for all overlapping pairs, when you get too many contact callbacks.

See http://www.bulletphysics.com/mediawiki- ... d_Triggers

Hope this helps,
Erwin