World:queryBoundingBox

World:queryBoundingBox Available since LÖVE 0.8.0 This method is not supported in earlier versions. Calls a function for each fixture inside the specified area by searching for any overlapping bounding box (Fixture:getBoundingBox). Function Synopsis World:queryBoundingBox( topLeftX, topLeftY, bottomRightX, bottomRightY, callback ) Arguments number topLeftX The x position of the top-left point. number topLeftY The y position of the top-left point. number bottomRightX The x position of t

World:isSleepingAllowed

World:isSleepingAllowed Available since LÖVE 0.9.0 It has been renamed from World:getAllowSleeping. Gets the sleep behaviour of the world. Function Synopsis allow = World:isSleepingAllowed( ) Arguments None. Returns boolean allow True if bodies in the world are allowed to sleep, or false if not. See Also World World:setSleepingAllowed

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

World:isLocked Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns if the world is updating its state. This will return true inside the callbacks from World:setCallbacks. Function Synopsis locked = World:isLocked( ) Arguments None. Returns boolean locked Will be true if the world is in the process of updating its state. See Also World

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

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