net.phys2d.raw
Interface CollisionContext
- All Known Implementing Classes:
- CollisionSpace
- public interface CollisionContext
The description of a class which can compute the collisions of a
set of bodies. This is part of decoupling the algorithm for broad phase
collisions against from the physics simulation world.
Method Summary |
void |
resolve(BodyList bodies,
float dt)
Resolve and store the collisions betwen each body in the list |
resolve
public void resolve(BodyList bodies,
float dt)
- Resolve and store the collisions betwen each body in the list
- Parameters:
bodies
- The bodies to be resolved against each otherdt
- The time thats passed since last collision check