Body:applyImpulse

Body:applyImpulse Removed in LÖVE 0.8.0 It has been renamed to Body:applyLinearImpulse. Applies an impulse to a body. This makes a single, instantaneous addition to the body momentum. An impulse pushes a body in a direction. A body with with a larger mass will react less. The reaction does not depend on the timestep, and is equivalent to applying a force continuously for 1 second. Impulses are best used to give a single push to a body. For a continuous push to a body it is better to use Bo

love.filesystem.getRealDirectory

love.filesystem.getRealDirectory Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the platform-specific absolute path of the directory containing a filepath. This can be used to determine whether a file is inside the save directory or the game's source .love. Function Synopsis realdir = love.filesystem.getRealDirectory( filepath ) Arguments string filepath The filepath to get the directory of. Returns string realdir The platform-specific full path of

love.audio.getVelocity

love.audio.getVelocity Returns the velocity of the listener. Function Synopsis x, y, z = love.audio.getVelocity( ) Arguments None. Returns number x The X velocity of the listener. number y The Y velocity of the listener. number z The Z velocity of the listener. See Also love.audio

WheelJoint:setMotorEnabled

WheelJoint:setMotorEnabled Available since LÖVE 0.9.0 This method is not supported in earlier versions. Starts and stops the joint motor. Function Synopsis WheelJoint:setMotorEnabled( enable ) Arguments boolean enable True turns the motor on and false turns it off. Returns Nothing. See Also WheelJoint

love.physics.newFrictionJoint

love.physics.newFrictionJoint Available since LÖVE 0.8.0 This function is not supported in earlier versions. Create a friction joint between two bodies. A FrictionJoint applies friction to a body. Function Synopsis joint = love.physics.newFrictionJoint( body1, body2, x, y, collideConnected ) Arguments Body body1 The first body to attach to the joint. Body body2 The second body to attach to the joint. number x The x position of the anchor point. number y The y position of the anchor poi

enet.peer:state

enet.peer:state Returns the state of the peer as a string. Function Synopsis peer:state() Arguments None. Returns string state The peer's current state. It can be any of the following: "disconnected" "connecting" "acknowledging_connect" "connection_pending" "connection_succeeded" "connected" "disconnect_later" "disconnecting" "acknowledging_disconnect" "zombie" "unknown" See Also lua-enet enet.peer

Mesh:getVertices

Mesh:getVertices Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use Mesh:getVertex in a loop instead. Gets all the vertices in the Mesh. This method can be slow if the Mesh has a large number of vertices. Keep the original table used to create the Mesh around and update it when necessary instead of using this method frequently, if possible. Function Synopsis vertices = Mesh:getVertices( ) Arguments None. Returns table vertices The table filled with vertex information tables for e

love.update

love.update Callback function used to update the state of the game every frame. Function Synopsis love.update( dt ) Arguments number dt Time since the last update in seconds. Returns Nothing. Examples Run a function called think inside a table called npc once per second. dtotal = 0 -- this keeps track of how much time has passed function love.update(dt) dtotal = dtotal + dt -- we add the time passed since the last update, probably a very small number like 0.01 if dtotal >= 1

World:getContactCount

World:getContactCount Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the number of contacts in the world. Function Synopsis n = World:getContactCount( ) Arguments None. Returns number n The number of contacts in the world. See Also World

love.thread.getChannel

love.thread.getChannel Available since LÖVE 0.9.0 This function is not supported in earlier versions. Creates or retrieves a named thread channel. Function Synopsis channel = love.thread.getChannel( name ) Arguments string name The name of the channel you want to create or retrieve. Returns Channel channel The Channel object associated with the name. See Also love.thread Channel