Compound objects

User avatar
frca
Posts: 39
Joined: Sat May 02, 2009 9:38 am

Compound objects

Post by frca »

When speaking about compound collision objects, what is better: To be made of convex hulls that overlap, or convex hulls that have more vertices, and even the number of individual convex hulls contained in compound maybe higner?
Thanks
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Compound objects

Post by Erwin Coumans »

Generally fewer convex pieces that overlap sounds best. btCompoundShape uses an acceleration structure, so more pieces isn't necessary bad.

It is best to compere both cases for your particular shapes.
Thanks,
Erwin