Body:getAngle

Body:getAngle Get the angle of the body. The angle is measured in radians. If you need to transform it to degrees, use math.deg. A value of 0 radians will mean "looking to the right". Although radians increase counter-clockwise, the y axis points down so it becomes clockwise from our point of view. Function Synopsis angle = Body:getAngle( ) Arguments None. Returns number angle The angle in radians. See Also Body

love.timer.getAverageDelta

love.timer.getAverageDelta Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the average delta time (seconds per frame) over the last second. Function Synopsis delta = love.timer.getAverageDelta( ) Arguments None. Returns number delta The average delta time over the last second. Examples Display text at the top left of the screen showing the average time taken to update and draw each frame. function love.draw() local delta = love.timer.getAverag

love.physics.getDistance

love.physics.getDistance Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the two closest points between two fixtures and their distance. This function does not work correctly in 0.8.0 and may terminate LÖVE without errors. Function Synopsis distance, x1, y1, x2, y2 = love.physics.getDistance( fixture1, fixture2 ) Arguments Fixture fixture1 The first fixture. Fixture fixture2 The second fixture. Returns number distance The distance of the two poi

love.graphics.getShader

love.graphics.getShader Available since LÖVE 0.9.0 It has been renamed from love.graphics.getPixelEffect. Gets the current Shader. Returns nil if none is set. Function Synopsis shader = love.graphics.getShader( ) Arguments None. Returns Shader shader The currently active Shader, or nil if none is set. See Also love.graphics love.graphics.setShader

love.system.getClipboardText

love.system.getClipboardText Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets text from the clipboard. Function Synopsis text = love.system.getClipboardText( ) Arguments None. Returns string text The text currently held in the system's clipboard. See Also love.system love.system.setClipboardText

love.joystickadded

love.joystickadded Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick is connected. Function Synopsis love.joystickadded( joystick ) Arguments Joystick joystick The newly connected Joystick object. Returns Nothing. Notes This callback is also triggered after love.load for every Joystick which was already connected when the game started up. See Also love love.joystick love.joystickremoved Joystick:isConnected

Body:getType

Body:getType Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the type of the body. Function Synopsis type = Body:getType( ) Arguments None. Returns BodyType type The body type. See Also Body Body:setType

Shape:getData

Shape:getData Removed in LÖVE 0.8.0 Use Fixture:getUserData instead. Get the data set with setData. Function Synopsis v = Shape:getData( ) Arguments None. Returns any v The data previously set, or nil if none. See Also Shape Shape:setData

Body:getY

Body:getY Get the y position of the body in world coordinates. Function Synopsis y = Body:getY( ) Arguments None. Returns number y The y position in world coordinates. See Also Body

love.mouse.setRelativeMode

love.mouse.setRelativeMode Available since LÖVE 0.9.2 This function is not supported in earlier versions. Sets whether relative mode is enabled for the mouse. When relative mode is enabled, the cursor is hidden and doesn't move when the mouse does, but relative mouse motion events are still generated via love.mousemoved. This lets the mouse move in any direction indefinitely without the cursor getting stuck at the edges of the screen. The reported position of the mouse may not be updated