Views
World
A world is an object that contains all bodies and joints.
Contents |
Constructors
love.physics.newWorld | Creates a new World. |
Functions
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
World:getBodyCount | Get the number of bodies in the world. |
World:getCallbacks | Get functions to be called when two shapes collide. |
World:getGravity | Get the gravity of the world. |
World:getJointCount | Get the number of joints in the world. |
World:getMeter | Get the scale of the world. |
World:isAllowSleep | Get the sleep behaviour of the world. |
World:setAllowSleep | Set the sleep behaviour of the world. |
World:setCallbacks | Set functions to be called when shapes collide. |
World:setGravity | Set the gravity of the world. |
World:setMeter | Set the scale of the world. |
World:update | Update the state of the world. |
Supertypes
See Also