Fix issue in testbed
This commit is contained in:
parent
bacdf23f8b
commit
333cabed98
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user