ParticleSystem:setDirection

ParticleSystem:setDirection Sets the direction the particles will be emitted in. Function Synopsis ParticleSystem:setDirection( direction ) Arguments number direction The direction of the particles (in radians). Returns Nothing. See Also ParticleSystem

PulleyJoint:getConstant

PulleyJoint:getConstant Get the total length of the rope. Function Synopsis length = PulleyJoint:getConstant( ) Arguments None. Returns number length The length of the rope in the joint. See Also PulleyJoint

love.graphics.setStencilTest

love.graphics.setStencilTest Available since LÖVE 0.10.0 Together with love.graphics.stencil, it has replaced love.graphics.setStencil. Configures or disables stencil testing. When stencil testing is enabled, the geometry of everything that is drawn afterward will be clipped / stencilled out based on a comparison between the arguments of this function and the stencil value of each pixel that the geometry touches. The stencil values of pixels are affected via love.graphics.stencil. Each Ca

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