Fixture:rayCast

Fixture:rayCast Available since LÖVE 0.8.0 This method is not supported in earlier versions. Casts a ray against the shape of the fixture and returns the surface normal vector and the line position where the ray hit. If the ray missed the shape, nil will be returned. The ray starts on the first point of the input line and goes towards the second point of the line. The fifth argument is the maximum distance the ray is going to travel as a scale factor of the input line length. The childInd

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

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

ChainShape:getPoints

ChainShape:getPoints Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns all points of the shape. A bug in 0.8.0 causes memory corruption if this function gets called on a ChainShape with more than 8 points. Function Synopsis x1, y1, x2, y2, ... = ChainShape:getPoints( ) Returns number x1 The x-coordinate of the first point. number y1 The y-coordinate of the first point. number x2 The x-coordinate of the second point. number y2 The y-coordinate of th

World:setGravity

World:setGravity Set the gravity of the world. Function Synopsis World:setGravity( x, y ) Arguments number x The x component of gravity. number y The y component of gravity. Returns Nothing. See Also World

Text:getDimensions

Text:getDimensions Available since LÖVE 0.10.1 This function is not supported in earlier versions. Gets the width and height of the text in pixels. Function Synopsis width, height = Text:getDimensions( ) Arguments None. Returns number width The width of the text. If multiple sub-strings have been added with Text:add, the width of the last sub-string is returned. number height The height of the text. If multiple sub-strings have been added with Text:add, the height of the last sub-string

BlendMode Formulas

BlendMode Formulas Equations used when blending drawn content with the screen or active Canvas. Color components are generally in the range of [0, 1] rather than [0, 255] for the purposes of these equations. Results are clamped to [0, 1] except when a Canvas is active that has a floating-point / HDR format. Description: dst - existing color in the screen. src - the color of the drawn object (the color output by the pixel shader, or the global color multiplied by the texture's color – if a

Font:setLineHeight

Font:setLineHeight Sets the line height. When rendering the font in lines the actual height will be determined by the line height multiplied by the height of the font. The default is 1.0. Function Synopsis Font:setLineHeight( height ) Arguments number height The new line height. Returns Nothing. See Also Font Font:getLineHeight

enet.host:compress with range coder

enet.host:compress with range coder Toggles an adaptive order-2 PPM range coder for the transmitted data of all peers. Function Synopsis host:compress_with_range_coder() Arguments None. Returns boolean state True if the compression algorithm is active, false if not. See Also lua-enet enet.host

love.audio.setDopplerScale

love.audio.setDopplerScale Available since LÖVE 0.9.2 This function is not supported in earlier versions. Sets a global scale factor for velocity-based doppler effects. The default scale value is 1. Function Synopsis love.audio.setDopplerScale( scale ) Arguments number scale The new doppler scale factor. The scale must be greater than 0. Returns Nothing. See Also love.audio love.audio.getDopplerScale