domewolf/maidemo — Issue #3: Collision detection
Author: jesseniemisto
Created: 2011-10-21 21:53:13+00:00
State: open

We need to implement one. Collision detection should be done like gravity calculations are.

Snippet from physics/mai_world.h

```C++
// includes only celestial bodies.
std::vector celestial_bodies_;

// all bodies, including celestial_bodies_.
std::vector bodies_;
```

for each body in bodies_ we should check if collision has occured with some celestial body in celestial_bodies_.

Also. When collision is detected. We should put down the coordinates + bodytype pair into a stack or queue so that shamir knows what and where to render.