tile2d
|
Resolves the collision between two bodies using the impulse method. More...
#include <collide.hpp>
Classes | |
struct | Impulse |
Public Member Functions | |
void | operator() (Body &body1, Body &body2, const CollisionManifold &manifold) |
Resolves the collision between two bodies using the impulse method.
[out] | body1 | The first tbody to resolve |
[out] | body2 | The second body to resolve |
[in] | manifolds | Must contain the depth, normal, and collision points between body1 and body2. |