Edit ball and socket joints net scene in testbed application
This commit is contained in:
parent
1bc1f0621e
commit
86b431ede0
|
@ -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));
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user