Body:setSleepingAllowed

Body:setSleepingAllowed Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the sleeping behaviour of the body. Should sleeping be allowed, a body at rest will automatically sleep. A sleeping body is not simulated unless it collided with an awake body. Be wary that one can end up with a situation like a floating sleeping body if the floor was removed. Function Synopsis Body:setSleepingAllowed( allowed ) Arguments boolean allowed True if the body is allowed to

Body:setType

Body:setType Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a new body type. Function Synopsis Body:setType( type ) Arguments BodyType type The new type. Returns Nothing. See Also Body Body:getType

Body:setUserData

Body:setUserData Available since LÖVE 0.9.1 This method is not supported in earlier versions. Associates a Lua value with the Body. To delete the reference, explicitly pass nil. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis Body:setUserData( value ) Arguments any value The Lua value to associate with the Body. Returns Nothing. See Also Body Body:getUserData

Body:setX

Body:setX Set the x position of the body. This function cannot wake up the body. Function Synopsis Body:setX( x ) Arguments number x The x position. Returns Nothing. See Also Body

Body:setY

Body:setY Set the y position of the body. This function cannot wake up the body. Function Synopsis Body:setY( y ) Arguments number y The y position. Returns Nothing. See Also Body

Body:wakeUp

Body:wakeUp Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Wake a sleeping body up. A sleeping body is much more efficient to simulate than when awake. A sleeping body will also wake up if another body collides with it or if a joint or contact attached to it is destroyed. Function Synopsis Body:wakeUp( ) Arguments None. Returns Nothing. See Also Body

Canvas:clear

Canvas:clear Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0 It has been replaced by love.graphics.clear. Clears the contents of a Canvas to a specific color. Calling this function directly after the Canvas becomes active (via love.graphics.setCanvas or Canvas:renderTo) is more efficient than calling it when the Canvas isn't active, especially on mobile devices. love.graphics.setScissor will restrict the area of the Canvas that this function affects. Function Clear the canvas to tr

Canvas:getDimensions

Canvas:getDimensions Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width and height of the Canvas. Function Synopsis width, height = Canvas:getDimensions( ) Arguments None. Returns number width The width of the Canvas, in pixels. number height The height of the Canvas, in pixels. See Also Canvas

Canvas:getFilter

Canvas:getFilter Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the filter mode of the Canvas. Function Synopsis min, mag = Canvas:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the canvas. FilterMode mag Filter mode used when magnifying the canvas. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis min, mag, anisotropy = Canvas:getFilter( ) Arguments None. Retur

Canvas:getFormat

Canvas:getFormat Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the texture format of the Canvas. Function Synopsis format = Canvas:getFormat( ) Arguments None. Returns CanvasFormat format The format of the Canvas. See Also Canvas love.graphics.newCanvas