@@ -48,10 +48,7 @@ class World {
48
48
std::vector<MultiBody*> multi_bodies_;
49
49
50
50
Vector3 gravity_acceleration_;
51
-
52
- std::vector<Geometry*> geoms_;
53
-
54
-
51
+
55
52
56
53
CollisionDispatcher<Algebra> dispatcher_;
57
54
RigidBodyConstraintSolver<Algebra>* rb_constraint_solver_{nullptr };
@@ -77,7 +74,6 @@ class World {
77
74
78
75
size_t num_rigid_bodies () const { return rigid_bodies_.size (); }
79
76
size_t num_multi_bodies () const { return multi_bodies_.size (); }
80
- size_t num_geoms () const { return geoms_.size (); }
81
77
82
78
inline void submit_profile_timing (const char * name=0 ) const {
83
79
if (profile_timing_func_) {
@@ -99,9 +95,6 @@ class World {
99
95
}
100
96
101
97
void clear () {
102
- while (!geoms_.empty ()) {
103
- delete geoms_.back (), geoms_.pop_back ();
104
- }
105
98
while (!rigid_bodies_.empty ()) {
106
99
delete rigid_bodies_.back (), rigid_bodies_.pop_back ();
107
100
}
@@ -122,25 +115,21 @@ class World {
122
115
123
116
Capsule* create_capsule (const Scalar& radius, const Scalar& length) {
124
117
Capsule* capsule = new Capsule (radius, length);
125
- geoms_.push_back (capsule);
126
118
return capsule;
127
119
}
128
120
129
121
Plane* create_plane () {
130
122
Plane* plane = new Plane ();
131
- geoms_.push_back (plane);
132
123
return plane;
133
124
}
134
125
135
126
Sphere* create_sphere (const Scalar& radius) {
136
127
Sphere* sphere = new Sphere (radius);
137
- geoms_.push_back (sphere);
138
128
return sphere;
139
129
}
140
130
141
131
Box* create_box (const Vector3& extents) {
142
132
Box* box = new Box (extents);
143
- geoms_.push_back (box);
144
133
return box;
145
134
}
146
135
0 commit comments