org.jbox2d.collision
Class ManifoldPoint

java.lang.Object
  extended by org.jbox2d.collision.ManifoldPoint

public class ManifoldPoint
extends Object

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:

This structure is stored across time steps, so we keep it small.
Note: the impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions.


Field Summary
 ContactID id
          uniquely identifies a contact point between two shapes
 Vec2 localPoint
          usage depends on manifold type
 float normalImpulse
          the non-penetration impulse
 float tangentImpulse
          the friction impulse
 
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

localPoint

public final Vec2 localPoint
usage depends on manifold type


normalImpulse

public float normalImpulse
the non-penetration impulse


tangentImpulse

public float tangentImpulse
the friction impulse


id

public final ContactID id
uniquely identifies a contact point between two shapes

Constructor Detail

ManifoldPoint

public ManifoldPoint()
Blank manifold point with everything zeroed out.


ManifoldPoint

public ManifoldPoint(ManifoldPoint cp)
Creates a manifold point as a copy of the given point

Parameters:
cp - point to copy from
Method Detail

set

public void set(ManifoldPoint cp)
Sets this manifold point form the given one

Parameters:
cp - the point to copy from


Copyright © 2013. All Rights Reserved.