PulleyJoint:setConstant

PulleyJoint:setConstant Set the total length of the rope. Setting a new length for the rope updates the maximum length values of the joint. Function Synopsis PulleyJoint:setConstant( length ) Arguments number length The new length of the rope in the joint. Returns Nothing. See Also PulleyJoint PulleyJoint:getMaxLengths

ChainShape:setPreviousVertex

ChainShape:setPreviousVertex Available since LÖVE 0.9.0 It has been renamed from ChainShape:setPrevVertex. Sets a vertex that establishes a connection to the previous shape. This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis ChainShape:setPreviousVertex( x, y ) Arguments number x The x-component of the vertex. number y The y-component of the vertex. Returns Nothing. See Also ChainShape ChainShape:set

love.event.pump

love.event.pump Pump events into the event queue. This is a low-level function, and is usually not called by the user, but by love.run. Note that this does need to be called for any OS to think you're still running, and if you want to handle OS-generated events at all (think callbacks). love.event.pump can only be called from the main thread, but afterwards, the rest of love.event can be used from any other thread. Function Synopsis love.event.pump( ) Arguments None. Returns Nothing. See Al

Contact:getNormal

Contact:getNormal Get the normal vector between two shapes that are in contact. This function returns the coordinates of a unit vector that points from the first shape to the second. Function Synopsis nx, ny = Contact:getNormal( ) Arguments None. Returns number nx The x component of the normal vector. number ny The y component of the normal vector. See Also Contact

Thread:peek

Thread:peek Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0 It has been moved to the Channel api. Retrieves the value of a message, but leaves it in the thread's message box. The name of the message can be any string. The value of the message can be a boolean, string, number or a LÖVE userdata. It returns nil, if there's no message with the given name. Function Synopsis value = Thread:peek( name ) Arguments string name The name of the message. Returns boolean, number, string or LÖV

Font:getFilter

Font:getFilter Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the filter mode for a font. Function Synopsis min, mag, anisotropy = Font:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the font. FilterMode mag Filter mode used when magnifying the font. number anisotropy Maximum amount of anisotropic filtering used. See Also Font FilterMode

love.graphics.newImage

love.graphics.newImage Creates a new Image from a filepath, FileData, an ImageData, or a CompressedImageData, and optionally generates or specifies mipmaps for the image. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis image = love.graphics.newImage( filename ) Arguments string filename The filepath to the image file. Returns I

love.graphics.polygon

love.graphics.polygon Draw a polygon. Following the mode argument, this function can accept multiple numeric arguments or a single table of numeric arguments. In either case the arguments are interpreted as alternating x and y coordinates of the polygon's vertices. When in fill mode, the polygon must be convex and simple or rendering artifacts may occur. love.math.triangulate and love.math.isConvex can be used in 0.9.0+. Function Synopsis love.graphics.polygon( mode, ... ) Arguments DrawMode

Font:getBaseline

Font:getBaseline Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the baseline of the Font. Most scripts share the notion of a baseline: an imaginary horizontal line on which characters rest. In some scripts, parts of glyphs lie below the baseline. Function Synopsis baseline = Font:getBaseline( ) Arguments None. Returns number baseline The baseline of the Font in pixels. See Also Font Font:getAscent Font:getDescent

World:setAllowSleeping

World:setAllowSleeping Available since LÖVE 0.8.0 This method is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to World:setSleepingAllowed. Sets the sleep behaviour of the world. Function Synopsis World:setAllowSleeping( allowSleep ) Arguments boolean allowSleep True if the bodies are allowed to sleep or false if not. Returns Nothing. See Also World World:getAllowSleeping