+
Show TOC
×
Hide TOC
All methods
Add
addBox
Adds a box to the world.
addCircle
Adds a circle to the world.
addContactListener
Enables all contact listener events.
addEventListener
addGroup
Creates a group out of existing QuickObject instances.
addJoint
Adds a joint to the world.
addPoly
Adds a polygon to the world.
addTimeStepSequence
This method is used for creating a sequence of function calls based on the QuickBox2D
totalTimeSteps
value.
area
create
Can create any type of QuickObject.
createMouse
createStageWalls
Draws boxes on each side of the stage.
defaultParams
QuickBox2D
destroy
QuickBox2D
Removes all event listeners within the QuickBox2D instance.
destroy
QuickObject
Destroys all composed Box2D instances (b2Shape, b2Body, b2Joint) and removes the DisplayObject associated with this QuickObject instance (if there is one).
dispatchEvent
fullDestroy
grid
Draws a grid for testing/debugging purposes only.
handCursor
hasEventListener
inCurrentContact
Checks to see if a QuickObject is part of the current ADD, REMOVE or PERSIST event.
insideTriangle
isCurrentContact
Checks to see if QuickObjects
a
and
b
are part of the current ADD, REMOVE or PERSIST event.
mouseDrag
Turns on mouse dragging for all non-static (dynamic) rigid bodies.
Persist
process
Remove
removeEventListener
Result
setDefault
Sets some default params for all QuickObjects.
setLoc
Sets the x and y location of the rigid body.
setMouse
Use this method for passing in custom mouse coordinates for
mouseDrag
.
start
Starts the Box2D simulation.
stop
Stops the Box2D simulation.
traceMouse
Causes the mouse location (in meters) to be traced to the output window when the stage is clicked.
updateBodies
updateMouse
willTrigger