This is used to compute the current state of a contact manifold. More...
#include <b2_collision.h>
Public Member Functions | |
void | Initialize (const b2Manifold *manifold, const b2Transform &xfA, float radiusA, const b2Transform &xfB, float radiusB) |
Public Attributes | |
b2Vec2 | normal |
world vector pointing from A to B More... | |
b2Vec2 | points [b2_maxManifoldPoints] |
world contact point (point of intersection) More... | |
float | separations [b2_maxManifoldPoints] |
a negative value indicates overlap, in meters More... | |
This is used to compute the current state of a contact manifold.
Definition at line 116 of file b2_collision.h.
void b2WorldManifold::Initialize | ( | const b2Manifold * | manifold, |
const b2Transform & | xfA, | ||
float | radiusA, | ||
const b2Transform & | xfB, | ||
float | radiusB | ||
) |
Evaluate the manifold with supplied transforms. This assumes modest motion from the original state. This does not change the point count, impulses, etc. The radii must come from the shapes that generated the manifold.
Definition at line 26 of file b2_collision.cpp.
b2Vec2 b2WorldManifold::normal |
world vector pointing from A to B
Definition at line 126 of file b2_collision.h.
b2Vec2 b2WorldManifold::points[b2_maxManifoldPoints] |
world contact point (point of intersection)
Definition at line 127 of file b2_collision.h.
float b2WorldManifold::separations[b2_maxManifoldPoints] |
a negative value indicates overlap, in meters
Definition at line 128 of file b2_collision.h.