Is btConvexPointCloudShape the best option?

kate
Posts: 41
Joined: Thu Jan 08, 2009 11:20 am
Location: London, UK

Is btConvexPointCloudShape the best option?

Post by kate »

Hi,

I'm currently deciding which of the convex hull collision shapes to use for my objects, and have surmised the following:

* btConvexHullShape is the most efficient
* btConvexTriangleMeshShape is less efficient, but doesn't duplicate triangle data - usage seems to be discouraged!
* btConvexPointCloudShape also doesn't duplicate the vertices, but (I'm guessing) is more efficient that btConvexTriangleMeshShape

Is that correct? If so, is there any reason to use btConvexHullShape, or btConvexTriangleMeshShape, rather than btConvexPointCloudShape?

Thanks :)

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

Re: Is btConvexPointCloudShape the best option?

Post by Erwin Coumans »

In general the btConvexHullShape is the best choice.

btConvexPointCloudShape is some experimental class used in some SPU refactoring, and btConvexTriangleMeshShape is a helper class with less performance than btConvexHullShape .

Hope this helps,
Erwin