Fixture:getCategory

Fixture:getCategory Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the categories the fixture belongs to. Function Synopsis category1, category2, ... = Fixture:getCategory( ) Arguments None. Returns number category1 The first category. number category2 The second category. See Also Fixture Fixture:setCategory

Body:getPosition

Body:getPosition Get the position of the body. Note that this may not be the center of mass of the body. Function Synopsis x, y = Body:getPosition( ) Arguments None. Returns number x The x position. number y The y position. See Also Body

enet.host:destroy

enet.host:destroy Destroys the host structure and closes all of its connections. This function is also ran automatically by lua's garbage collector, since it's an alias to host:__gc. Function Synopsis host:destroy() Arguments None. Returns Nothing. See Also lua-enet enet.host

Canvas:getFormat

Canvas:getFormat Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the texture format of the Canvas. Function Synopsis format = Canvas:getFormat( ) Arguments None. Returns CanvasFormat format The format of the Canvas. See Also Canvas love.graphics.newCanvas

enet.host:service

enet.host:service Wait for events, send and receive any ready packets. If an event is in the queue it will be returned and dequeued. Generally you will want to dequeue all waiting events every frame. Function Synopsis event = host:service( timeout ) Arguments number timeout The max number of milliseconds to be waited for an event. Default is 0. Returns table event An event or nil if no events occured. See Also lua-enet enet.event

enet.peer:timeout

enet.peer:timeout Returns or sets the parameters when a timeout is detected. This is happens either after a fixed timeout or a variable timeout of time that takes the round trip time into account. The former is specified with the maximum parameter. Function Synopsis peer:timeout(limit, minimum, maximum) Arguments number limit A factor that is multiplied with a value that based on the average round trip time to compute the timeout limit. number minimum Timeout value, in milliseconds, that a

Body:setFixedRotation

Body:setFixedRotation Set whether a body has fixed rotation. Bodies with fixed rotation don't vary the speed at which they rotate. WARNING: LÖVE 0.6.2 does not yet contain the fix for a bug with this function when it is called with a false argument. Function Synopsis Body:setFixedRotation( isFixed ) Arguments boolean isFixed Whether the body should have fixed rotation. Returns Nothing. See Also Body

love.joystick.getNumHats

love.joystick.getNumHats Removed in LÖVE 0.9.0 It has been moved to Joystick:getHatCount. Returns the number of hats on the joystick. Function Synopsis hats = love.joystick.getNumHats( joystick ) Arguments number joystick The joystick to be checked Returns number hats How many hats the joystick has See Also love.joystick

love.physics.newRevoluteJoint

love.physics.newRevoluteJoint Creates a pivot joint between two bodies. This joint connects two bodies to a point around which they can pivot. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis joint = love.physics.newRevoluteJoint( body1, body2, x, y, collideConnected ) Arguments Body body1 The first body. Body body2 The second body. number x The x position of the connecting point. number y The y position of the connecting point. boolean

PrismaticJoint:isMotorEnabled

PrismaticJoint:isMotorEnabled Checks whether the motor is enabled. Function Synopsis enabled = PrismaticJoint:isMotorEnabled( ) Arguments None. Returns boolean enabled True if enabled, false if disabled. See Also PrismaticJoint