make soft bodies more compatible with rigid body API: disable setCollisionShape (it would delete the shape passed in!)

This commit is contained in:
erwin.coumans
2008-09-21 15:19:54 +00:00
parent 7a72d76ef2
commit d2f7f9d25b
4 changed files with 9 additions and 3 deletions

View File

@@ -606,6 +606,13 @@ public:
/* dtor */
virtual ~btSoftBody();
/* Check for existing link */
virtual void setCollisionShape(btCollisionShape* collisionShape)
{
//don't do anything, due to the internal shape hack: todo: fix this
}
bool checkLink( int node0,
int node1) const;
bool checkLink( const Node* node0,