Fix issue in testbed

This commit is contained in:
Daniel Chappuis 2021-01-04 21:36:38 +01:00
parent bacdf23f8b
commit 333cabed98

View File

@ -107,9 +107,6 @@ CollisionShapesScene::CollisionShapesScene(const std::string& name, EngineSettin
// Create a sphere and a corresponding rigid in the physics world
Sphere* sphere = new Sphere(true, SPHERE_RADIUS, mPhysicsCommon, mPhysicsWorld, meshFolderPath);
// Add some rolling resistance
sphere->getCollider()->getMaterial().setRollingResistance(rp3d::decimal(0.08));
// Set the box color
sphere->setColor(mObjectColorDemo);
sphere->setSleepingColor(mSleepingColorDemo);
@ -130,8 +127,6 @@ CollisionShapesScene::CollisionShapesScene(const std::string& name, EngineSettin
Capsule* capsule = new Capsule(true, CAPSULE_RADIUS, CAPSULE_HEIGHT,
mPhysicsCommon, mPhysicsWorld, meshFolderPath);
capsule->getCollider()->getMaterial().setRollingResistance(rp3d::decimal(0.08f));
// Set the box color
capsule->setColor(mObjectColorDemo);
capsule->setSleepingColor(mSleepingColorDemo);