Speed of btBoxShapes vs btBvhTriangleMeshShape

qcrist
Posts: 2
Joined: Fri Sep 07, 2012 8:10 pm

Speed of btBoxShapes vs btBvhTriangleMeshShape

Post by qcrist »

How much slower are meshes than primitives when they are static?

I would like to know because I am trying to decide if I should make maps with lots of btBoxShapes or just a single btBvhTriangleMeshShape.

Thanks,
Qcrist
xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Re: Speed of btBoxShapes vs btBvhTriangleMeshShape

Post by xexuxjy »

Hard to tell without testing really, will depend on your map.

Individual boxshapes would get culled at broadphase level where as a single BVHMesh would always collide at that point. But BvhTriangleMesh is pretty efficient in the narrowphase anyway. You could of course have a mixture of both (multiple triangle meshes and or boxes depednding on how you want your map to look.