public class FGearJoint extends FJoint
FRevoluteJoint
and FPrismaticJoint
.Constructor and Description |
---|
FGearJoint(FJoint joint1,
FJoint joint2)
Construct a gear joint between two joints.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(processing.core.PGraphics applet)
This method is called when calling
world.draw() . |
void |
setRatio(float ratio)
Sets the ratio of movement transfer from one joint to the other of the gear.
|
addToWorld, getBody1, getBody2, getBox2dJoint, getReactionForceX, getReactionForceY, getReactionTorque, removeFromWorld, setCollideConnected
attachImage, dettachImage, draw, drawDebug, drawDebug, getFillColor, getImageAlpha, isDrawable, setDrawable, setFill, setFill, setFill, setFill, setFillColor, setImageAlpha, setNoFill, setNoStroke, setStroke, setStroke, setStroke, setStroke, setStrokeColor, setStrokeWeight
public void setRatio(float ratio)
ratio
- the ratio of movement that is transfered between the first and the second joints of the gearpublic void draw(processing.core.PGraphics applet)
FDrawable
world.draw()
.
This method may be overriden to allow custom drawing of the object.processing library fisica by Ricard Marxer. (c) 2009-2014