org.ode4j.ode
Class DContactGeom

java.lang.Object
  extended by org.ode4j.ode.DContactGeom

public class DContactGeom
extends java.lang.Object

Describe the contact point between two geoms. If two bodies touch, or if a body touches a static feature in its environment, the contact is represented by one or more "contact points", described by dContactGeom. The convention is that if body 1 is moved along the normal vector by a distance depth (or equivalently if body 2 is moved the same distance in the opposite direction) then the contact depth will be reduced to zero. This means that the normal vector points "in" to body 1.


Field Summary
 double depth
           
 DGeom g1
           
 DGeom g2
           
 DVector3 normal
           
 DVector3 pos
           
 int side1
           
 int side2
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pos

public DVector3 pos

normal

public DVector3 normal

depth

public double depth

g1

public DGeom g1

g2

public DGeom g2

side1

public int side1

side2

public int side2