SGPhysics
Class Constraint

java.lang.Object
  extended by SGPhysics.Constraint

public class Constraint
extends java.lang.Object


Field Summary
 SGBody a
           
 SGBody b
           
 float length
           
 float stiffness
           
 
Constructor Summary
Constraint(SGBody a, SGBody b, float stiffness)
          Creates a new instance of Constraint
 
Method Summary
 void render(processing.core.PApplet parent)
           
 void resolve()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

public SGBody a

b

public SGBody b

length

public float length

stiffness

public float stiffness
Constructor Detail

Constraint

public Constraint(SGBody a,
                  SGBody b,
                  float stiffness)
Creates a new instance of Constraint

Method Detail

resolve

public void resolve()

render

public void render(processing.core.PApplet parent)