Slow ConvexCompound Collision

Post Reply
geromueller
Posts: 2
Joined: Thu Aug 28, 2014 9:35 pm

Slow ConvexCompound Collision

Post by geromueller »

Hi!

When i collide two CompoundShapes with ~10 ConvexHulls each, with ~10 Vertices each, the collision is very slow: ~2ms.
When i leave the bigger mesh (~1000 verts/faces) as GImpact Shape, it is very fast: < 1ms.

Any ideas? I thought it should be faster..

UPDATE: from what i found in this forum, compound shapes have even more problems:
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=9586
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=9842
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=9586
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=9427
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=9278
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=8465
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=7572

I found that in my case there are up to 15 manifolds, with GImpact only 1!

EDIT: found a bug in my code. Time and manifold count reduced.

Thanks
Gero
Post Reply