|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fisica.FDrawable fisica.FJoint
public abstract class FJoint
Represents a joint between two or more bodies. A joint establishes some kind of relation between two or more bodies. Depending on the specific joint the relation might be a distance relation, a rotation relation or even a volume conservation relation. This class cannot be be instantiated, instead use one of the derived classes.
Constructor Summary | |
---|---|
FJoint()
|
Method Summary | |
---|---|
void |
addToWorld(FWorld world)
|
FBody |
getBody1()
Returns the first body attached to this joint. |
FBody |
getBody2()
Returns the second body attached to this joint. |
org.jbox2d.dynamics.joints.Joint |
getBox2dJoint()
WARNING: This method is internal only and may change someday. |
float |
getReactionForceX()
Returns the horizontal component of the reaction force on the second body at the joint anchor. |
float |
getReactionForceY()
Returns the vertical component of the reaction force on the second body at the joint anchor. |
float |
getReactionTorque()
Returns the reaction torque on the second body at the joint anchor. |
void |
removeFromWorld()
|
void |
setCollideConnected(boolean value)
Sets whether the bodies connected by the joint should collide with each other. |
Methods inherited from class fisica.FDrawable |
---|
attachImage, dettachImage, draw, draw, drawDebug, drawDebug, getFillColor, getImageAlpha, isDrawable, setDrawable, setFill, setFill, setFill, setFill, setFillColor, setImageAlpha, setNoFill, setNoStroke, setStroke, setStroke, setStroke, setStroke, setStrokeColor, setStrokeWeight |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FJoint()
Method Detail |
---|
public org.jbox2d.dynamics.joints.Joint getBox2dJoint()
public void addToWorld(FWorld world)
public void removeFromWorld()
public FBody getBody1()
public FBody getBody2()
public void setCollideConnected(boolean value)
value
- if true
the bodies connected by this joint will be allowed to collide with each otherpublic float getReactionForceX()
public float getReactionForceY()
public float getReactionTorque()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |