Canvas:getDimensions

Canvas:getDimensions Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width and height of the Canvas. Function Synopsis width, height = Canvas:getDimensions( ) Arguments None. Returns number width The width of the Canvas, in pixels. number height The height of the Canvas, in pixels. See Also Canvas

RevoluteJoint:setMaxMotorTorque

RevoluteJoint:setMaxMotorTorque Set the maximum motor force. Function Synopsis RevoluteJoint:setMaxMotorTorque( f ) Arguments number f The maximum motor force, in Nm. Returns Nothing. See Also RevoluteJoint

FrictionJoint:setMaxTorque

FrictionJoint:setMaxTorque Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the maximum friction torque in Newton-meters. Function Synopsis FrictionJoint:setMaxTorque( torque ) Arguments number torque Maximum torque in Newton-meters. Returns Nothing. See Also FrictionJoint FrictionJoint:getMaxTorque

Shape:getCategoryBits

Shape:getCategoryBits Removed in LÖVE 0.8.0 Use Fixture:getCategory instead. Gets the categories as a 16-bit integer. A set bit indicates membership of that category. Function Synopsis An = Shape:getCategoryBits( ) Arguments None. Returns number An Integer value representing the categories. See Also Shape

Shape:destroy

Shape:destroy Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Explicitly destroys the Shape. When you don't have time to wait for garbage collection, this function may be used to free the object immediately, but note that an error will occur if you attempt to use the object after calling this function. Note that Box2D doesn't allow destroying or creating shapes during collision callbacks. Function Synopsis Shape:destroy( ) Arguments None. Returns Nothing

Shape:computeMass

Shape:computeMass Available since LÖVE 0.8.0 This function is not supported in earlier versions. Computes the mass properties for the shape with the specified density. Function Synopsis x, y, mass, inertia = Shape:computeMass( density ) Arguments number density The shape density. Returns number x The x postition of the center of mass. number y The y postition of the center of mass. number mass The mass of the shape. number inertia The rotational inertia. See Also Shape

Shape:getRadius

Shape:getRadius Gets the radius of the shape. Function Synopsis radius = Shape:getRadius() From the Box2D manual: Polygons inherit a radius from Shape. The radius creates a skin around the polygon. The skin is used in stacking scenarios to keep polygons slightly separated. This allows continuous collision to work against the core polygon. Arguments None. Returns number radius The radius of the shape. See Also Shape

Source:seek

Source:seek Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the currently playing position of the Source. Function Synopsis Source:seek( offset, unit ) Arguments number offset The position to seek to. TimeUnit unit ("seconds") The unit of the position value. Returns Nothing. See Also Source:tell Source

enet.host:total sent data

enet.host:total sent data Returns the number of bytes that were sent through the given host. Function Synopsis host:total_sent_data() Arguments None. Returns number bytes The total number of bytes sent. See Also lua-enet enet.host enet.host:total_received_data

SpriteBatch:addq

SpriteBatch:addq Removed in LÖVE 0.9.0 It has been merged into SpriteBatch:add. Adds a Quad to the batch. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis id = SpriteBatch:addq( quad, x, y, r, sx, sy, ox, oy, kx, ky ) Arguments Quad quad The Quad to add. number x The position to draw the object (x-axis). number y The position to draw the object (y-axis). number r (0) Orientation (radians). number sx (1) Scale factor (x-axis). number s