Fixture:testPoint

Fixture:testPoint Available since LÖVE 0.8.0 This method is not supported in earlier versions. Checks if a point is inside the shape of the fixture. Function Synopsis isInside = Fixture:testPoint( x, y ) Arguments number x The x position of the point. number y The y position of the point. Returns boolean isInside True if the point is inside or false if it is outside. See Also Fixture

RopeJoint:getMaxLength

RopeJoint:getMaxLength Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the maximum length of a RopeJoint. Function Synopsis maxLength = RopeJoint:getLength( ) Arguments None. Returns number maxLength The maximum length of the RopeJoint. See Also RopeJoint

love.image.newCompressedData

love.image.newCompressedData Available since LÖVE 0.9.0 This function is not supported in earlier versions. Create a new CompressedImageData object from a compressed image file. LÖVE supports several compressed texture formats, enumerated in the CompressedImageFormat page. 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 compre

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

love.system.setClipboardText

love.system.setClipboardText Available since LÖVE 0.9.0 This function is not supported in earlier versions. Puts text in the clipboard. Function Synopsis love.system.setClipboardText( text ) Arguments string text The new text to hold in the system's clipboard. Returns Nothing. See Also love.system love.system.getClipboardText

SpriteBatch:setTexture

SpriteBatch:setTexture Available since LÖVE 0.9.1 This function is not supported in earlier versions. Sets the texture (Image or Canvas) used for the sprites in the batch, when drawing. Function Synopsis SpriteBatch:setTexture( texture ) Arguments Texture texture The new Image or Canvas to use for the sprites in the batch. Returns Nothing. See Also SpriteBatch SpriteBatch:getTexture

Body:getAngularDamping

Body:getAngularDamping Gets the Angular damping of the Body The angular damping is the rate of decrease of the angular velocity over time: A spinning body with no damping and no external forces will continue spinning indefinitely. A spinning body with damping will gradually stop spinning. Damping is not the same as friction - they can be modelled together. However, only damping is provided by Box2D (and LOVE). Damping parameters should be between 0 and infinity, with 0 meaning no damping,

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

World:queryBoundingBox

World:queryBoundingBox Available since LÖVE 0.8.0 This method is not supported in earlier versions. Calls a function for each fixture inside the specified area by searching for any overlapping bounding box (Fixture:getBoundingBox). Function Synopsis World:queryBoundingBox( topLeftX, topLeftY, bottomRightX, bottomRightY, callback ) Arguments number topLeftX The x position of the top-left point. number topLeftY The y position of the top-left point. number bottomRightX The x position of t

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