Font:getDescent

Font:getDescent Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the descent of the Font. The descent spans the distance between the baseline and the lowest descending glyph in a typeface. Function Synopsis descent = Font:getDescent( ) Arguments None. Returns number descent The descent of the Font in pixels. See Also Font Font:getAscent Font:getBaseline

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

Font:getAscent

Font:getAscent Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the ascent of the Font. The ascent spans the distance between the baseline and the top of the glyph that reaches farthest from the baseline. Function Synopsis ascent = Font:getAscent( ) Arguments None. Returns number ascent The ascent of the Font in pixels. See Also Font Font:getDescent Font:getBaseline

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

Fixture:setUserData

Fixture:setUserData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Associates a Lua value with the fixture. To delete the reference, explicitly pass nil. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis Fixture:setUserData( value ) Arguments any value The Lua value to associate with the fixture. Returns Nothing. See Also Fixture Fixture:getUserData

Fixture:setSensor

Fixture:setSensor Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets whether the fixture should act as a sensor. Sensors do not cause collision responses, but the begin-contact and end-contact World callbacks will still be called for this fixture. Function Synopsis Fixture:setSensor( sensor ) Arguments boolean sensor The sensor status. Returns Nothing. See Also Fixture Fixture:isSensor

Fixture:setRestitution

Fixture:setRestitution Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the restitution of the fixture. Function Synopsis Fixture:setRestitution( restitution ) Arguments number restitution The fixture restitution. Returns Nothing. See Also Fixture Fixture:getRestitution

Fixture:setMask

Fixture:setMask Available since LÖVE 0.8.0 This method is not supported in earlier versions. Fixture:setMask works in NOT.Categories selected will NOT collide with this fixture. If you want to work as Box2d works with Mask use instead Fixture:setFilterData Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16. This fixture will NOT collide with the fixtures that are in the selected categories if the other fixture also has a category

Fixture:setGroupIndex

Fixture:setGroupIndex Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the group the fixture belongs to. Fixtures with the same group will always collide if the group is positive or never collide if it's negative. The group zero means no group. The groups range from -32768 to 32767. Function Synopsis Fixture:setGroupIndex( group ) Arguments number group The group as an integer from -32768 to 32767. Returns Nothing. See Also Fixture Fixture:getGroupI

Fixture:setFriction

Fixture:setFriction Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the friction of the fixture. Friction determines how shapes react when they "slide" along other shapes. Low friction indicates a slippery surface, like ice, while high friction indicates a rough surface, like concrete. Range: 0.0 - 1.0. Function Synopsis Fixture:setFriction( friction ) Arguments number friction The fixture friction. Returns Nothing. See Also Fixture Fixture:getFric