@@ -11,22 +11,36 @@ int main()
11
11
12
12
// ======================================== Phase 1: Init Simulation World Info ========================================
13
13
14
- HINASIM::RigidBody sphere1 (PBD_MODEL_DIR + std::string (" sphere.obj" ), {0 , -3 , 0 }, {70 , 40 , 20 }, {2 , 2 , 2 });
15
- HINASIM::RigidBody sphere2 (PBD_MODEL_DIR + std::string (" sphere.obj" ), {0 , 3 , 0 }, {-70 , -40 , -20 }, {1 , 1 , 1 });
16
- HINASIM::RigidBody box1 (PBD_MODEL_DIR + std::string (" cube.obj" ), {0 , -5 , 0 });
17
- HINASIM::RigidBody box2 (PBD_MODEL_DIR + std::string (" cube.obj" ), {0 , 5 , 0 });
14
+ HINASIM::RigidBody sphere1 (PBD_MODEL_DIR + std::string (" sphere.obj" ), {0 , -3 , 0 }, {70 , 40 , 20 }, {5 , 5 , 5 });
15
+ 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 });
17
+ HINASIM::RigidBody sphere4 (PBD_MODEL_DIR + std::string (" sphere.obj" ), {0 , 8 , -1 }, {0 , 0 , 0 }, {1 , 1 , 1 });
18
+ HINASIM::RigidBody sphere5 (PBD_MODEL_DIR + std::string (" sphere.obj" ), {0 , 10 , 1 }, {0 , 0 , 0 }, {1 , 1 , 1 });
19
+ HINASIM::RigidBody sphere6 (PBD_MODEL_DIR + std::string (" sphere.obj" ), {0 , 12 , 0 }, {0 , 0 , 0 }, {1 , 1 , 1 });
18
20
19
21
pbd_sim
20
22
.set_collision_engine (&cd)
21
23
.add_object (&sphere1)
22
- .add_object (&sphere2);
24
+ .add_object (&sphere2)
25
+ .add_object (&sphere3)
26
+ .add_object (&sphere4)
27
+ .add_object (&sphere5)
28
+ .add_object (&sphere6);
23
29
24
30
sphere1.set_inv_mass (0 );
25
31
26
32
cd.add_collider_sphere (&sphere1);
27
33
cd.add_collider_sphere (&sphere2);
34
+ cd.add_collider_sphere (&sphere3);
35
+ cd.add_collider_sphere (&sphere4);
36
+ cd.add_collider_sphere (&sphere5);
37
+ cd.add_collider_sphere (&sphere6);
28
38
29
39
pbd_viewer.record (&sphere2);
40
+ pbd_viewer.record (&sphere3);
41
+ pbd_viewer.record (&sphere4);
42
+ pbd_viewer.record (&sphere5);
43
+ pbd_viewer.record (&sphere6);
30
44
pbd_viewer.record (&sphere1);
31
45
32
46
// ======================================== Phase 2: Set Up Simulation Thread ========================================
0 commit comments