|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.phys2d.raw.FixedAngleJoint
A joint that will maintain a fixed angle between two bodies
| Constructor Summary | |
FixedAngleJoint(Body body1,
Body body2,
Vector2f anchor1,
Vector2f anchor2,
float rotateA)
|
|
| Method Summary | |
void |
applyImpulse()
Apply the impulse caused by the joint to the bodies attached. |
Vector2f |
getAnchor1()
Get the anchor of the joint on the first body |
Vector2f |
getAnchor2()
Get the anchor of the joint on the second body |
Body |
getBody1()
Get the first body attached to this joint |
Body |
getBody2()
Get the second body attached to this joint |
float |
getRotateA()
Get the angle maintained between the two bodies |
void |
preStep(float invDT)
Precaculate everything and apply initial impulse before the simulation step takes place |
void |
setRelaxation(float relaxation)
Set the relaxtion value on this joint. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FixedAngleJoint(Body body1,
Body body2,
Vector2f anchor1,
Vector2f anchor2,
float rotateA)
body1 - The first body to be attached on constraintbody2 - The second body to be attached on constraintanchor1 - The anchor point on first bodyanchor2 - The anchor point on second bodyrotateA - The fixed angle on body2 from body1| Method Detail |
public void applyImpulse()
Joint
applyImpulse in interface JointJoint.applyImpulse()public Body getBody1()
Joint
getBody1 in interface JointJoint.getBody1()public Body getBody2()
Joint
getBody2 in interface JointJoint.getBody2()public void preStep(float invDT)
Joint
preStep in interface JointinvDT - The amount of time the simulation is being stepped byJoint.preStep(float)public void setRelaxation(float relaxation)
Joint
setRelaxation in interface Jointrelaxation - The relaxation valueJoint.setRelaxation(float)public float getRotateA()
public Vector2f getAnchor1()
public Vector2f getAnchor2()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||