Skip to content

Commit 7a4d5e8

Browse files
committed
update Rigid example
1 parent a784967 commit 7a4d5e8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Examples/RigidSim01/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ int main()
1111

1212
// ======================================== Phase 1: Init Simulation World Info ========================================
1313

14-
HINASIM::RigidBody sphere1(PBD_MODEL_DIR + std::string("sphere.obj"), {0, -3, 0}, {70, 40, 20}, {5, 5, 5});
14+
HINASIM::RigidBody sphere1(PBD_MODEL_DIR + std::string("sphere.obj"), {0, -50, 0}, {0, 0, 0}, {50, 50, 50});
1515
HINASIM::RigidBody sphere2(PBD_MODEL_DIR + std::string("sphere.obj"), {1, 4, 0}, {-70, -40, -20}, {1, 1, 1});
16-
HINASIM::RigidBody sphere3(PBD_MODEL_DIR + std::string("sphere.obj"), {-1, 6, 0}, {0, 0, 0}, {1, 1, 1});
16+
HINASIM::RigidBody sphere3(PBD_MODEL_DIR + std::string("sphere.obj"), {-1, 6, 0}, {70, 40, 20}, {1, 1, 1});
1717
HINASIM::RigidBody sphere4(PBD_MODEL_DIR + std::string("sphere.obj"), {0, 8, -1}, {0, 0, 0}, {1, 1, 1});
1818
HINASIM::RigidBody sphere5(PBD_MODEL_DIR + std::string("sphere.obj"), {0, 10, 1}, {0, 0, 0}, {1, 1, 1});
1919
HINASIM::RigidBody sphere6(PBD_MODEL_DIR + std::string("sphere.obj"), {0, 12, 0}, {0, 0, 0}, {1, 1, 1});
@@ -36,12 +36,12 @@ int main()
3636
cd.add_collider_sphere(&sphere5);
3737
cd.add_collider_sphere(&sphere6);
3838

39-
pbd_viewer.record(&sphere2);
39+
pbd_viewer.record(&sphere1);
4040
pbd_viewer.record(&sphere3);
4141
pbd_viewer.record(&sphere4);
4242
pbd_viewer.record(&sphere5);
4343
pbd_viewer.record(&sphere6);
44-
pbd_viewer.record(&sphere1);
44+
pbd_viewer.record(&sphere2);
4545

4646
// ======================================== Phase 2: Set Up Simulation Thread ========================================
4747

RenderingFrameWork/pbd_viewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ HINAVIEWER::PBDViewer::~PBDViewer()
2222
#ifndef __APPLE__
2323
_pclose(ffmpeg);
2424
#endif
25-
return;
25+
return;
2626
}
2727

2828
void HINAVIEWER::PBDViewer::launch_rendering(const std::string &window_name)

0 commit comments

Comments
 (0)