improve BasicDemo, better mouse handling, add colors to drawing

This commit is contained in:
Erwin Coumans
2014-05-21 09:59:24 -07:00
parent 7f300a877f
commit 28f19f1bab
6 changed files with 25 additions and 11 deletions

View File

@@ -39,7 +39,7 @@ void BasicDemoPhysicsSetup::initPhysics()
{
btScalar mass(0.);
createRigidBody(mass,groundTransform,groundShape);
createRigidBody(mass,groundTransform,groundShape, btVector4(0,0,1,1));
}
@@ -99,7 +99,7 @@ btBoxShape* BasicDemoPhysicsSetup::createBoxShape(const btVector3& halfExtents)
return box;
}
btRigidBody* BasicDemoPhysicsSetup::createRigidBody(float mass, const btTransform& startTransform,btCollisionShape* shape)
btRigidBody* BasicDemoPhysicsSetup::createRigidBody(float mass, const btTransform& startTransform,btCollisionShape* shape, const btVector4& color)
{
btAssert((!shape || shape->getShapeType() != INVALID_SHAPE_PROXYTYPE));