public abstract class FJoint extends FDrawable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_collideConnected |
protected org.jbox2d.dynamics.joints.Joint |
m_joint |
protected FWorld |
m_world |
m_drawable, m_fill, m_fillColor, m_image, m_imageAlpha, m_mask, m_stroke, m_strokeColor, m_strokeWeight| 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.
|
protected org.jbox2d.dynamics.joints.JointDef |
getJointDef(FWorld world) |
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.
|
protected void |
postDraw(def.processing.core.PGraphics applet) |
protected void |
postDrawDebug(def.processing.core.PGraphics applet) |
protected void |
preDraw(def.processing.core.PGraphics applet) |
protected void |
preDrawDebug(def.processing.core.PGraphics applet) |
protected void |
processJoint(org.jbox2d.dynamics.World world,
org.jbox2d.dynamics.joints.JointDef jd) |
void |
removeFromWorld() |
void |
setCollideConnected(boolean value)
Sets whether the bodies connected by the joint should collide with each other.
|
appletFill, appletFillStroke, appletStroke, attachImage, dettachImage, draw, drawDebug, drawImage, getFillColor, getImageAlpha, isDrawable, setDrawable, setFill, setFill, setFill, setFill, setFillColor, setImageAlpha, setNoFill, setNoStroke, setStroke, setStroke, setStroke, setStroke, setStrokeColor, setStrokeWeight, updateStyleprotected org.jbox2d.dynamics.joints.Joint m_joint
protected FWorld m_world
protected boolean m_collideConnected
public org.jbox2d.dynamics.joints.Joint getBox2dJoint()
protected void processJoint(org.jbox2d.dynamics.World world,
org.jbox2d.dynamics.joints.JointDef jd)
public void addToWorld(FWorld world)
public void removeFromWorld()
protected org.jbox2d.dynamics.joints.JointDef getJointDef(FWorld world)
protected void preDraw(def.processing.core.PGraphics applet)
protected void postDraw(def.processing.core.PGraphics applet)
protected void preDrawDebug(def.processing.core.PGraphics applet)
protected void postDrawDebug(def.processing.core.PGraphics applet)
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()