org.jbox2d.dynamics.contacts
Class ContactPoint

java.lang.Object
  extended by org.jbox2d.dynamics.contacts.ContactPoint

public class ContactPoint
extends java.lang.Object


Field Summary
 float friction
          The combined friction coefficient
 ContactID id
          The contact id identifies the features in contact
 Vec2 normal
          Points from shape1 to shape2
 Vec2 position
          Position in world coordinates
 float restitution
          The combined restitution coefficient
 float separation
          The separation is negative when shapes are touching
 Shape shape1
          The first shape
 Shape shape2
          The second shape
 Vec2 velocity
          Velocity of point on body2 relative to point on body1 (pre-solver)
 
Constructor Summary
ContactPoint()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shape1

public Shape shape1
The first shape


shape2

public Shape shape2
The second shape


position

public Vec2 position
Position in world coordinates


velocity

public Vec2 velocity
Velocity of point on body2 relative to point on body1 (pre-solver)


normal

public Vec2 normal
Points from shape1 to shape2


separation

public float separation
The separation is negative when shapes are touching


friction

public float friction
The combined friction coefficient


restitution

public float restitution
The combined restitution coefficient


id

public ContactID id
The contact id identifies the features in contact

Constructor Detail

ContactPoint

public ContactPoint()