cloth
diff src/simworld.cc @ 3:28a31079dcdf
disc
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 04 Jan 2016 10:52:15 +0200 |
parents | 2eac424f58b2 |
children |
line diff
1.1 --- a/src/simworld.cc Tue Feb 12 00:23:40 2013 +0200 1.2 +++ b/src/simworld.cc Mon Jan 04 10:52:15 2016 +0200 1.3 @@ -7,6 +7,21 @@ 1.4 damping = 0.99; 1.5 } 1.6 1.7 +void SimWorld::add_object(Object *o) 1.8 +{ 1.9 + objects.push_back(o); 1.10 +} 1.11 + 1.12 +int SimWorld::get_object_count() const 1.13 +{ 1.14 + return (int)objects.size(); 1.15 +} 1.16 + 1.17 +Object *SimWorld::get_object(int idx) const 1.18 +{ 1.19 + return objects[idx]; 1.20 +} 1.21 + 1.22 void SimWorld::add_particle(Particle *p) 1.23 { 1.24 part.push_back(p);