org.jbox2d.dynamics.contacts
Class ContactResult

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

public class ContactResult
extends Object

This structure is used to report contact point results.


Field Summary
 ContactID id
          The contact id identifies the features in contact
 Vec2 normal
          Points from shape1 to shape2
 float normalImpulse
          The normal impulse applied to body2
 Vec2 position
          Position in world coordinates
 Shape shape1
          The first shape
 Shape shape2
          The second shape
 float tangentImpulse
          The tangent impulse applied to body2
 
Constructor Summary
ContactResult()
           
 
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 final Vec2 position
Position in world coordinates


normal

public final Vec2 normal
Points from shape1 to shape2


normalImpulse

public float normalImpulse
The normal impulse applied to body2


tangentImpulse

public float tangentImpulse
The tangent impulse applied to body2


id

public final ContactID id
The contact id identifies the features in contact

Constructor Detail

ContactResult

public ContactResult()