Constructor and Description |
---|
FLine(float x1,
float y1,
float x2,
float y2)
Constructs a line body that can be added to a world.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(processing.core.PGraphics applet)
This method is called when calling
world.draw() . |
void |
drawDebug(processing.core.PGraphics applet)
This method is called when calling
world.drawDebug() . |
void |
setEnd(float x,
float y)
Sets the end point of the line.
|
void |
setStart(float x,
float y)
Sets the start point of the line.
|
addForce, addForce, addImpulse, addImpulse, addTorque, addToWorld, adjustAngularVelocity, adjustPosition, adjustRotation, adjustVelocity, getAngularVelocity, getBox2dBody, getCategoryBits, getContacts, getDensity, getFilterBits, getForceX, getForceY, getGroupIndex, getJoints, getMass, getName, getParent, getRotation, getTouching, getVelocityX, getVelocityY, getX, getY, isConnected, isResting, isSensor, isSleeping, isStatic, isTouchingBody, recreateInWorld, removeFromWorld, resetForces, setAllowSleeping, setAngularDamping, setAngularVelocity, setBullet, setCategoryBits, setDamping, setDensity, setFilterBits, setForce, setFriction, setGrabbable, setGroupIndex, setName, setParent, setPosition, setRestitution, setRotatable, setRotation, setSensor, setState, setStateFromWorld, setStatic, setStaticBody, setVelocity, wakeUp
attachImage, dettachImage, draw, drawDebug, getFillColor, getImageAlpha, isDrawable, setDrawable, setFill, setFill, setFill, setFill, setFillColor, setImageAlpha, setNoFill, setNoStroke, setStroke, setStroke, setStroke, setStroke, setStrokeColor, setStrokeWeight
public FLine(float x1, float y1, float x2, float y2)
x1
- horizontal position of the first point of the liney1
- vertical position of the first point of the linex2
- horizontal position of the second point of the liney2
- vertical position of the second point of the linepublic void setStart(float x, float y)
x
- horizontal position of the first point of the liney
- vertical position of the first point of the linepublic void setEnd(float x, float y)
x
- horizontal position of the first point of the liney
- vertical position of the first point of the linepublic void draw(processing.core.PGraphics applet)
FDrawable
world.draw()
.
This method may be overriden to allow custom drawing of the object.public void drawDebug(processing.core.PGraphics applet)
FDrawable
world.drawDebug()
.
This method may be overriden to allow custom debug drawing of the object.processing library fisica by Ricard Marxer. (c) 2009-2014