public abstract class FJoint extends FDrawable
Constructor and Description |
---|
FJoint() |
Modifier and Type | Method and Description |
---|---|
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.
|
attachImage, dettachImage, draw, draw, drawDebug, drawDebug, getFillColor, getImageAlpha, isDrawable, setDrawable, setFill, setFill, setFill, setFill, setFillColor, setImageAlpha, setNoFill, setNoStroke, setStroke, setStroke, setStroke, setStroke, setStrokeColor, setStrokeWeight
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()
processing library fisica by Ricard Marxer. (c) 2009-2014