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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user