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

enet.host:service time

enet.host:service time Returns the time-stamp of the last call to host:service() or host:flush(). The time-stamp is in milliseconds of the current time of day. Function Synopsis host:channel_limit(limit) Arguments None. Returns number timestamp A time-stamp in milliseconds. See Also lua-enet enet.host enet.host:service enet.host:flush

love.graphics.getSystemLimits

love.graphics.getSystemLimits Available since LÖVE 0.10.0 It has replaced love.graphics.getSystemLimit. Gets the system-dependent maximum values for love.graphics features. Function Synopsis limits = love.graphics.getSystemLimits( ) Arguments None. Returns table limits A table containing GraphicsLimit keys, and number values. See Also love.graphics GraphicsLimit

love.mouse.isGrabbed

love.mouse.isGrabbed Checks if the mouse is grabbed. Function Synopsis grabbed = love.mouse.isGrabbed( ) Arguments None. Returns boolean grabbed True if the cursor is grabbed, false if it is not. Examples Toggles whether the mouse is grabbed by pressing tab, using love.mouse.setGrabbed. function love.keypressed(key) if key == "tab" then local state = not love.mouse.isGrabbed() -- the opposite of whatever it currently is love.mouse.setGrabbed(state) --Use love.mouse.setGra

love.math.triangulate

love.math.triangulate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Decomposes a simple convex or concave polygon into triangles. Function Synopsis triangles = love.math.triangulate( polygon ) Arguments table polygon Polygon to triangulate. Must not intersect itself. Returns table triangles List of triangles the polygon is composed of, in the form of {{x1, y1, x2, y2, x3, y3}, {x1, y1, x2, y2, x3, y3}, ...}. Function Synopsis triangles = love.math.tr

enet.peer:round trip time

enet.peer:round trip time Returns or sets the current round trip time (i.e. ping). If value is nil the current value of the peer is returned. Otherwise the round trip time is set to the specified value and returned. ENet performs some filtering on the round trip times and it takes some time until the parameters are accurate. To speed it up, set the last round trip time to an accurate guess. Function Synopsis peer:round_trip_time() Arguments None. Returns number roundtriptime The peer's c

Body:getUserData

Body:getUserData Available since LÖVE 0.9.1 This method is not supported in earlier versions. Returns the Lua value associated with this Body. 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 value = Body:getUserData( ) Arguments None. Returns any value The Lua value associated with the Body. See Also Body Body:setUserData

love.graphics.checkMode

love.graphics.checkMode Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Checks if a display mode is supported. Function Synopsis supported = love.graphics.checkMode( width, height, fullscreen ) Arguments number width The display width. number height The display height. boolean fullscreen (false) True to check for fullscreen, false for windowed. Returns boolean supported True if supported, false if not. See Also love.graphics

(Image):refresh

(Image):refresh Available since LÖVE 0.9.0 This function is not supported in earlier versions. Reloads the Image's contents from the ImageData or CompressedData used to create the image. Function Synopsis Image:refresh( ) Arguments None. Returns Nothing. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis Image:refresh( x, y, width, height ) Arguments number x The x-axis of the top-left corner of the area within the Image to reload. numbe

Source:isStatic

Source:isStatic Available since LÖVE 0.7.0 and removed in LÖVE 0.10.0 It has been replaced by Source:getType. Returns whether the Source is static. Function Synopsis static = Source:isStatic( ) Arguments None. Returns boolean static True if the Source is static, false otherwise. See Also Source SourceType