World:isDestroyed

World:isDestroyed Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether the World is destroyed. Destroyed worlds cannot be used. Function Synopsis destroyed = World:isDestroyed( ) Arguments None. Returns boolean destroyed Whether the World is destroyed. See Also World World:destroy

World:isAllowSleep

World:isAllowSleep Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Get the sleep behaviour of the world. A sleeping body is much more efficient to simulate than when awake. If sleeping is allowed, any body that has come to rest will sleep. Function Synopsis permission = World:isAllowSleep( ) Arguments None. Returns boolean permission Permission for any body to sleep. See Also World

World:getJointList

World:getJointList Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns a table with all joints. Function Synopsis joints = World:getJointList( ) Arguments None. Returns table joints A sequence with all joints. See Also World

World:getJointCount

World:getJointCount Returns the number of joints in the world. Function Synopsis n = World:getJointCount( ) Arguments None. Returns number n The number of joints in the world. See Also World

World:getGravity

World:getGravity Get the gravity of the world. Function Synopsis x, y = World:getGravity( ) Arguments None. Returns number x The x component of gravity. number y The y component of gravity. See Also World

World:getContactList

World:getContactList Not stable in 0.8.0. You may experience crashing. Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns a table with all contacts. Function Synopsis contacts = World:getContactList( ) Arguments None. Returns table contacts A sequence with all contacts. See Also World

World:getContactFilter

World:getContactFilter Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the function for collision filtering. Function Synopsis contactFilter = World:getContactFilter( ) Arguments None. Returns function contactFilter The function that handles the contact filtering. See Also World World:setContactFilter

World:getContactCount

World:getContactCount Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the number of contacts in the world. Function Synopsis n = World:getContactCount( ) Arguments None. Returns number n The number of contacts in the world. See Also World

World:getCallbacks

World:getCallbacks Returns functions for the callbacks during the world update. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis beginContact, endContact, preSolve, postSolve = World:getCallbacks( ) Arguments None. Returns function beginContact Gets called when two fixtures begin to overlap. function endContact Gets called when two fixtures cease to overlap. function preSolve Gets called before a collision gets resolved. function postSolve

World:getBodyList

World:getBodyList Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns a table with all bodies. Function Synopsis bodies = World:getBodyList( ) Arguments None. Returns table bodies A sequence with all bodies. See Also World