Edit ball and socket joints net scene in testbed application

This commit is contained in:
Daniel Chappuis 2020-10-16 00:00:55 +02:00
parent 1bc1f0621e
commit 86b431ede0
3 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ BallAndSocketJointsNetScene::BallAndSocketJointsNetScene(const std::string& name
createJoints();
// Create the main sphere
mMainSphere = new Sphere(true, 10, mPhysicsCommon, mPhysicsWorld, meshFolderPath);
mMainSphere = new Sphere(true, 7, mPhysicsCommon, mPhysicsWorld, meshFolderPath);
mMainSphere->setColor(mObjectColorDemo);
mMainSphere->setSleepingColor(mSleepingColorDemo);
rp3d::Vector3 initPosition(0, 0, 0);
@ -181,7 +181,7 @@ void BallAndSocketJointsNetScene::reset() {
SceneDemo::reset();
const float space = 0.3f;
const float space = 0.5f;
const float startX = -(NB_ROWS_NET_SPHERES / 2.0f * (2.0 * SPHERE_RADIUS + space));
const float startZ = -(NB_ROWS_NET_SPHERES / 2.0f * (2.0 * SPHERE_RADIUS + space));

View File

@ -37,7 +37,7 @@ namespace ballandsocketjointsnetscene {
// Constants
const float SCENE_RADIUS = 40.0f;
const float SPHERE_RADIUS = 0.5f;
const int NB_ROWS_NET_SPHERES = 40;
const int NB_ROWS_NET_SPHERES = 20;
// Class JointsScene
class BallAndSocketJointsNetScene : public SceneDemo {

View File

@ -159,7 +159,7 @@ void TestbedApplication::createScenes() {
mScenes.push_back(ballAndSocketJointsNetScene);
assert(mScenes.size() > 0);
const int firstSceneIndex = 10;
const int firstSceneIndex = 0;
switchScene(mScenes[firstSceneIndex]);
}