World:getAllowSleeping

World:getAllowSleeping Available since LÖVE 0.8.0 This method is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to World:isSleepingAllowed. Returns the sleep behaviour of the world. Function Synopsis allowSleep = World:getAllowSleeping( ) Arguments None. Returns boolean allowSleep True if the bodies are allowed to sleep or false if not. See Also World World:setAllowSleeping

World:getBodyCount

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

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

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: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: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: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: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: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: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