|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.collision.ManifoldPoint
public class ManifoldPoint
A manifold point is a contact point belonging to a contact manifold. It holds details related to the geometry and dynamics of the contact points. The point is stored in local coordinates because CCD requires sub-stepping in which the separation is stale.
Field Summary | |
---|---|
ContactID |
id
Uniquely identifies a contact point between two shapes |
Vec2 |
localPoint1
Local position of the contact point in body1 |
Vec2 |
localPoint2
Local position of the contact point in body2 |
float |
normalImpulse
The non-penetration force |
float |
separation
The separation of the shapes along the normal vector |
float |
tangentImpulse
The friction force |
Constructor Summary | |
---|---|
ManifoldPoint()
Blank manifold point with everything zeroed out. |
|
ManifoldPoint(ManifoldPoint cp)
Creates a manifold point as a copy of the given point |
Method Summary | |
---|---|
void |
set(ManifoldPoint cp)
Sets this manifold point form 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 Vec2 localPoint1
public final Vec2 localPoint2
public float separation
public float normalImpulse
public float tangentImpulse
public final ContactID id
Constructor Detail |
---|
public ManifoldPoint()
public ManifoldPoint(ManifoldPoint cp)
cp
- point to copy fromMethod Detail |
---|
public void set(ManifoldPoint cp)
cp
- the point to copy from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |