|
| | FLine (float x1, float y1, float x2, float y2) |
| |
| void | setStart (float x, float y) |
| |
| void | setEnd (float x, float y) |
| |
|
void | draw (PGraphics applet) |
| |
|
void | drawDebug (PGraphics applet) |
| |
Public Member Functions inherited from FBody |
| Body | getBox2dBody () |
| |
| int | getGroupIndex () |
| |
|
void | addToWorld (FWorld world) |
| |
|
void | setState (FBody b) |
| |
|
void | setStateFromWorld () |
| |
|
void | recreateInWorld () |
| |
|
void | removeFromWorld () |
| |
| void | setGroupIndex (int index) |
| |
|
void | setFilterBits (int mask) |
| |
|
void | setCategoryBits (int mask) |
| |
|
int | getCategoryBits () |
| |
|
int | getFilterBits () |
| |
|
void | setParent (FBody b) |
| |
|
FBody | getParent () |
| |
| void | setGrabbable (boolean value) |
| |
| void | setForce (float fx, float fy) |
| |
| float | getForceX () |
| |
| float | getForceY () |
| |
| void | addTorque (float torque) |
| |
| void | addForce (float fx, float fy) |
| |
| void | addImpulse (float fx, float fy) |
| |
| void | addForce (float fx, float fy, float px, float py) |
| |
| void | addImpulse (float fx, float fy, float px, float py) |
| |
| void | resetForces () |
| |
| float | getVelocityX () |
| |
| float | getVelocityY () |
| |
| void | setVelocity (float vx, float vy) |
| |
| void | adjustVelocity (float dvx, float dvy) |
| |
| float | getX () |
| |
| float | getY () |
| |
| void | setPosition (float x, float y) |
| |
| void | adjustPosition (float dx, float dy) |
| |
| float | getRotation () |
| |
| float | getHapticStiffness () |
| |
| float | getHapticDamping () |
| |
| void | setRotation (float w) |
| |
| void | adjustRotation (float dw) |
| |
| boolean | isResting () |
| |
| boolean | isSleeping () |
| |
| void | wakeUp () |
| |
| float | getAngularVelocity () |
| |
| void | setAngularVelocity (float w) |
| |
| void | adjustAngularVelocity (float dw) |
| |
| void | setAngularDamping (float damping) |
| |
| void | setDamping (float damping) |
| |
| void | setName (String name) |
| |
| String | getName () |
| |
| void | setDensity (float density) |
| |
| float | getDensity () |
| |
| void | setSensor (boolean value) |
| |
| boolean | isSensor () |
| |
| void | setHaptic (boolean value) |
| |
| void | setHaptic (boolean value, float stiffness, float damping) |
| |
| boolean | isHaptic () |
| |
| void | setHapticStiffness (float stiffness) |
| |
| void | setHapticDamping (float damping) |
| |
| void | setStaticBody (boolean value) |
| |
| void | setStatic (boolean value) |
| |
| float | getMass () |
| |
| boolean | isStatic () |
| |
| void | setBullet (boolean value) |
| |
| void | setRestitution (float restitution) |
| |
| void | setFriction (float friction) |
| |
| void | setRotatable (boolean rotatable) |
| |
| void | setAllowSleeping (boolean allowSleep) |
| |
| ArrayList | getTouching () |
| |
| ArrayList | getContacts () |
| |
| ArrayList | getJoints () |
| |
| boolean | isConnected (FBody other) |
| |
| boolean | isTouchingBody (FBody b) |
| |
| void | draw (PGraphics graphics) |
| |
| void | draw (PApplet applet) |
| |
| void | drawDebug (PGraphics graphics) |
| |
| void | drawDebug (PApplet applet) |
| |
| void | attachImage (PImage img) |
| |
| void | dettachImage () |
| |
| float | getImageAlpha () |
| |
| void | setImageAlpha (float alpha) |
| |
| void | setDrawable (boolean drawable) |
| |
| boolean | isDrawable () |
| |
| int | getFillColor () |
| |
| void | setFillColor (int col) |
| |
| void | setNoFill () |
| |
| void | setFill (float g) |
| |
| void | setFill (float g, float a) |
| |
| void | setFill (float r, float g, float b) |
| |
| void | setFill (float r, float g, float b, float a) |
| |
| void | setStrokeColor (int col) |
| |
| void | setNoStroke () |
| |
| void | setStroke (float g) |
| |
| void | setStroke (float g, float a) |
| |
| void | setStroke (float r, float g, float b) |
| |
| void | setStroke (float r, float g, float b, float a) |
| |
| void | setStrokeWeight (float weight) |
| |
|
|
ShapeDef | getShapeDef () |
| |
Protected Member Functions inherited from FBody |
|
void | processBody (Body bd, ShapeDef sd) |
| |
|
ShapeDef | getShapeDef () |
| |
|
ShapeDef | getTransformedShapeDef () |
| |
|
ShapeDef | getProcessedShapeDef () |
| |
|
ArrayList | getShapeDefs () |
| |
|
ArrayList | getBodies () |
| |
|
ShapeDef | processShapeDef (ShapeDef sd) |
| |
|
void | preDraw (PGraphics applet) |
| |
|
void | postDraw (PGraphics applet) |
| |
|
void | preDrawDebug (PGraphics applet) |
| |
|
void | postDrawDebug (PGraphics applet) |
| |
|
AABB | getAABB () |
| |
|
AABB | getBB () |
| |
|
void | applyMatrix (PGraphics applet) |
| |
|
void | setPosition (Vec2 position) |
| |
|
void | updateMass () |
| |
|
Vec2 | getLocalWorldPoint (Vec2 p) |
| |
|
void | updateStyle (FDrawable other) |
| |
|
void | appletStroke (PGraphics applet, int argb) |
| |
|
void | appletFill (PGraphics applet, int argb) |
| |
|
void | appletFillStroke (PGraphics applet) |
| |
|
void | drawImage (PGraphics applet) |
| |
Represents a line body that can be added to a world.
Bodies
- See also
- FBox
-
FCircle
-
FBlob
-
FPoly