Physics2D

Makes 2D objects fall, collide and bounce off each other like real things. It draws nothing itself, so the Lens needs something else to show the objects.

Games & Interactivity

Game engines, physics, quizzes, leaderboards, and the UI controls that tie it together.

Made with this block

Functions

createObject

creates and returns Physics object /** * @typedef {Object} Physics * @property {PhysicsEngineFactory} Engine * @property {PhysicsBodiesFactory} Bodies * @property {PhysicsBodyMethods} Body * @property {PhysicsWorldMethods} World * @property {PhysicsConstraintFactory} Constraint * @property {PhysicsEventsMethods} Events * @property {PhysicsBoundsMethods} Bounds */