add plSetOpenGLMatrix to Bullet-C-API

This commit is contained in:
erwin.coumans
2009-03-10 00:13:18 +00:00
parent 69b7f177db
commit 7ae29bd13e
2 changed files with 9 additions and 0 deletions

View File

@@ -295,6 +295,14 @@ void plSetOrientation(plRigidBodyHandle object, const plQuaternion orientation)
body->setWorldTransform(worldTrans);
}
void plSetOpenGLMatrix(plRigidBodyHandle object, plReal* matrix)
{
btRigidBody* body = reinterpret_cast< btRigidBody* >(object);
btAssert(body);
btTransform& worldTrans = body->getWorldTransform();
worldTrans.setFromOpenGLMatrix(matrix);
}
void plGetOpenGLMatrix(plRigidBodyHandle object, plReal* matrix)
{
btRigidBody* body = reinterpret_cast< btRigidBody* >(object);