|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.collision.Manifold
public class Manifold
A manifold for two touching convex shapes. Box2D supports multiple types of contact:
Nested Class Summary | |
---|---|
static class |
Manifold.ManifoldType
|
Field Summary | |
---|---|
Vec2 |
localNormal
not use for Type::e_points |
Vec2 |
localPoint
usage depends on manifold type |
int |
pointCount
The number of manifold points. |
ManifoldPoint[] |
points
The points of contact. |
Manifold.ManifoldType |
type
|
Constructor Summary | |
---|---|
Manifold()
creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints. |
|
Manifold(Manifold other)
Creates this manifold as a copy of the other |
Method Summary | |
---|---|
void |
set(Manifold cp)
copies this manifold from the given one |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final ManifoldPoint[] points
public final Vec2 localNormal
public final Vec2 localPoint
public Manifold.ManifoldType type
public int pointCount
Constructor Detail |
---|
public Manifold()
public Manifold(Manifold other)
other
- Method Detail |
---|
public void set(Manifold cp)
cp
- manifold to copy from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |