Package org.jbox2d.collision
Class ManifoldPoint
java.lang.Object
org.jbox2d.collision.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 local
point usage depends on the manifold type:
Note: the impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions.
- circles: the local center of circleB
- faceA: the local center of circleB or the clip point of polygonB
- faceB: the clip point of polygonA
Note: the impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions.
- Author:
- Daniel Murphy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlank manifold point with everything zeroed out.Creates a manifold point as a copy of the given point -
Method Summary
Modifier and TypeMethodDescriptionvoidset(ManifoldPoint cp) Sets this manifold point form the given one
-
Field Details
-
localPoint
usage depends on manifold type -
normalImpulse
public float normalImpulsethe non-penetration impulse -
tangentImpulse
public float tangentImpulsethe friction impulse -
id
uniquely identifies a contact point between two shapes
-
-
Constructor Details
-
ManifoldPoint
public ManifoldPoint()Blank manifold point with everything zeroed out. -
ManifoldPoint
Creates a manifold point as a copy of the given point- Parameters:
cp- The point to copy from.
-
-
Method Details
-
set
Sets this manifold point form the given one- Parameters:
cp- The point to copy from.
-