Fix btSoftBody issue, so it can interact with btCollisionObject and btGhostObject (and not just btRigidBody and btSoftBody)

Thank for the report mi076 http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2823

remove legacy.c from libxml
removed #include <math.h> from btQuadWord.h , it should be centralized in btScalar.h (to allow easier replacement with fastmath.h etc)
This commit is contained in:
erwin.coumans
2008-11-10 20:33:14 +00:00
parent 8865e38e5b
commit 3c0ca0d931
8 changed files with 39 additions and 25 deletions

View File

@@ -1724,9 +1724,16 @@ void SoftDemo::initPhysics()
tr.setOrigin(btVector3(0,-12,0));
localCreateRigidBody(0.f,tr,m_collisionShapes[0]);
#define USE_COLLISION_OBJECT 1
#ifdef USE_COLLISION_OBJECT
btCollisionObject* newOb = new btCollisionObject();
newOb->setWorldTransform(tr);
newOb->setInterpolationWorldTransform( tr);
newOb->setCollisionShape(m_collisionShapes[0]);
m_dynamicsWorld->addCollisionObject(newOb);
#else
this->localCreateRigidBody(0,tr,m_collisionShapes[0]);
#endif //USE_COLLISION_OBJECT
// clientResetScene();