When I used btConvexHullShape to build a convex shape, is it a solid or just surface?
Where is the center of gravity? Is it in the shape or on the surface?
Questioin about btConvexHullShape.
-
- Posts: 57
- Joined: Tue Mar 16, 2010 1:42 am
Re: Questioin about btConvexHullShape.
Neither. It is a pointcloud.qingteng wrote:When I used btConvexHullShape to build a convex shape, is it a solid or just surface?
The center of gravity (or the center of mass) is at the origin of the convex hull shape. Bullet does not calculate a center of mass. If you need the center of mass to be somewhere else, either move the points used to create the convex hull shape, or place the convex hull shape in a compound with a position transform.Where is the center of gravity?
As for the inertia obtained through calculateLocalInertia(), Bullet uses the bounding box and considers it solid.
---JvdL---
-
- Posts: 14
- Joined: Tue Jul 06, 2010 5:20 pm
Re: Questioin about btConvexHullShape.
jarno, thank you for your prompt reply. I got it.
jarno wrote:Neither. It is a pointcloud.qingteng wrote:When I used btConvexHullShape to build a convex shape, is it a solid or just surface?
The center of gravity (or the center of mass) is at the origin of the convex hull shape. Bullet does not calculate a center of mass. If you need the center of mass to be somewhere else, either move the points used to create the convex hull shape, or place the convex hull shape in a compound with a position transform.Where is the center of gravity?
As for the inertia obtained through calculateLocalInertia(), Bullet uses the bounding box and considers it solid.
---JvdL---