public class FCompound extends FBody
m_allowSleep, m_angle, m_angularDamping, m_angularVelocity, m_body, m_bullet, m_categoryBits, m_density, m_filterBits, m_force, m_friction, m_grabbable, m_groupIndex, m_isSleeping, m_linearDamping, m_linearVelocity, m_name, m_parent, m_position, m_restitution, m_rotatable, m_sensor, m_shape, m_static, m_torque, m_worldm_drawable, m_fill, m_fillColor, m_image, m_imageAlpha, m_mask, m_stroke, m_strokeColor, m_strokeWeight| Constructor and Description |
|---|
FCompound() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBody(FBody body) |
void |
draw(def.processing.core.PGraphics applet)
This method is called when calling
world.draw(). |
void |
drawDebug(def.processing.core.PGraphics applet)
This method is called when calling
world.drawDebug(). |
ArrayList |
getBodies() |
ArrayList |
getShapeDefs() |
addForce, addForce, addImpulse, addImpulse, addTorque, addToWorld, adjustAngularVelocity, adjustPosition, adjustRotation, adjustVelocity, applyMatrix, getAABB, getAngularVelocity, getBB, getBox2dBody, getCategoryBits, getContacts, getDensity, getFilterBits, getForceX, getForceY, getGroupIndex, getJoints, getLocalWorldPoint, getMass, getName, getParent, getProcessedShapeDef, getRotation, getShapeDef, getTouching, getTransformedShapeDef, getVelocityX, getVelocityY, getX, getY, isConnected, isResting, isSensor, isSleeping, isStatic, isTouchingBody, postDraw, postDrawDebug, preDraw, preDrawDebug, processBody, processShapeDef, recreateInWorld, removeFromWorld, resetForces, setAllowSleeping, setAngularDamping, setAngularVelocity, setBullet, setCategoryBits, setDamping, setDensity, setFilterBits, setForce, setFriction, setGrabbable, setGroupIndex, setName, setParent, setPosition, setPosition, setRestitution, setRotatable, setRotation, setSensor, setState, setStateFromWorld, setStatic, setStaticBody, setVelocity, updateMass, wakeUpappletFill, appletFillStroke, appletStroke, attachImage, dettachImage, drawImage, getFillColor, getImageAlpha, isDrawable, setDrawable, setFill, setFill, setFill, setFill, setFillColor, setImageAlpha, setNoFill, setNoStroke, setStroke, setStroke, setStroke, setStroke, setStrokeColor, setStrokeWeight, updateStylepublic ArrayList getShapeDefs()
getShapeDefs in class FBodypublic void addBody(FBody body)
public void draw(def.processing.core.PGraphics applet)
FDrawableworld.draw().
This method may be overriden to allow custom drawing of the object.public void drawDebug(def.processing.core.PGraphics applet)
FDrawableworld.drawDebug().
This method may be overriden to allow custom debug drawing of the object.