set linear/angular velocity to zero when objects are asleep

Thanks to  http://code.google.com/p/bullet/issues/detail?id=73
improve performance of btConvexTriangleMeshShape::recalcLocalAabb
Thanks to fullmetalcoder, http://code.google.com/p/bullet/issues/detail?id=67#makechanges
This commit is contained in:
erwin.coumans
2008-08-29 05:30:50 +00:00
parent 8340a77aa8
commit 80f80df7e3
4 changed files with 44 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ class btConvexTriangleMeshShape : public btPolyhedralConvexShape
class btStridingMeshInterface* m_stridingMesh;
public:
btConvexTriangleMeshShape(btStridingMeshInterface* meshInterface);
btConvexTriangleMeshShape(btStridingMeshInterface* meshInterface, bool calcAabb = true);
class btStridingMeshInterface* getMeshInterface()
{
@@ -53,3 +53,4 @@ public:
#endif //CONVEX_TRIANGLEMESH_SHAPE_H