|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfisica.FDrawable
fisica.FJoint
fisica.FGearJoint
public class FGearJoint
Represents a gear joint between joints that transfers the movement of one joint to the other. This type of joint can only be used on joints of types FRevoluteJoint and FPrismaticJoint.
| Constructor Summary | |
|---|---|
FGearJoint(FJoint joint1,
FJoint joint2)
Construct a gear joint between two joints. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class fisica.FJoint |
|---|
addToWorld, getBody1, getBody2, getBox2dJoint, getReactionForceX, getReactionForceY, getReactionTorque, removeFromWorld, setCollideConnected |
| Methods inherited from class fisica.FDrawable |
|---|
attachImage, dettachImage, 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 FGearJoint(FJoint joint1,
FJoint joint2)
joint1 - first joint of the gearjoint2 - second joint of the gear| Method Detail |
|---|
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)
FDrawableworld.draw().
This method may be overriden to allow custom drawing of the object.
draw in class FDrawableapplet - the graphics onto which the object must be drawn.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||