btStaticPlaneShape in Houdini-Bullet *UPDATE - Done!*
Posted: Fri Feb 26, 2010 2:00 am
I'm trying to get btStaticPlaneShape to work with the Houdini plugin. I've got it working at origin, but I can't move or rotate it. Is this even possible? To get it working, I'm using setEuler() to change the XYZ rotation settings from Houdini into Quaternions (variable 'qtn'), and passing that into the ground's btTransform. Does this look right?
Code: Select all
btDefaultMotionState* groundMotionState = new btDefaultMotionState( btTransform(qtn),btVector3(0,-1,0)));
btRigidBody::btRigidBodyConstructionInfo groundRigidBodyCI(0,groundMotionState,groundShape,btVector3(0,1,0));
btRigidBody* groundRigidBody = new btRigidBody(groundRigidBodyCI);
state->m_dynamicsWorld->addRigidBody(groundRigidBody);