Font:getLineHeight

Font:getLineHeight Gets the line height. This will be the value previously set by Font:setLineHeight, or 1.0 by default. Function Synopsis height = Font:getLineHeight( ) Arguments None. Returns number height The current line height. See Also Font Font:setLineHeight

CircleShape:setPoint

CircleShape:setPoint Available since LÖVE 0.9.1 This function is not supported in earlier versions. Sets the location of the center of the circle shape. Function Synopsis x, y = CircleShape:setPoint( x, y ) Arguments number x The x-component of the new center point of the circle. number y The y-component of the new center point of the circle. Returns Nothing. See Also CircleShape CircleShape:getPoint

love.mouse.getPosition

love.mouse.getPosition Returns the current position of the mouse. Function Synopsis x, y = love.mouse.getPosition( ) Arguments None. Returns number x The position of the mouse along the x-axis. number y The position of the mouse along the y-axis. Examples Use getPosition to help draw a custom mouse image function love.load() love.mouse.setVisible(false) -- make default mouse invisible img = love.graphics.newImage("mouse.png") -- load in a custom mouse image end function love.draw()

WheelJoint:getSpringFrequency

WheelJoint:getSpringFrequency Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the spring frequency. Function Synopsis freq = WheelJoint:getSpringFrequency( ) Arguments None. Returns number freq The frequency in hertz. See Also WheelJoint WheelJoint:setSpringFrequency

Channel:peek

Channel:peek Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the value of a Channel message, but leaves it in the queue. It returns nil if there's no message in the queue. Function Synopsis value = Channel:peek( ) Arguments None. Returns Variant value The contents of the message. See Also Channel Channel:pop

Body:getLinearVelocityFromWorldPoint

Body:getLinearVelocityFromWorldPoint Get the linear velocity of a point on the body. The linear velocity for a point on the body is the velocity of the body center of mass plus the velocity at that point from the body spinning. The point on the body must given in world coordinates. Use Body:getLinearVelocityFromLocalPoint to specify this with local coordinates. Function Synopsis vx, vy = Body:getLinearVelocityFromWorldPoint( x, y ) Arguments number x The x position to measure velocity. num

love.physics.setMeter

love.physics.setMeter Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the pixels to meter scale factor. All coordinates in the physics module are divided by this number and converted to meters, and it creates a convenient way to draw the objects directly to the screen without the need for graphics transformations. It is recommended to create shapes no larger than 10 times the scale. This is important because Box2D is tuned to work well with shape sizes

Channel:supply

Channel:supply Available since LÖVE 0.9.0 This function is not supported in earlier versions. Send a message to the thread Channel and wait for a thread to accept it. See Variant for the list of supported types. Function Synopsis Channel:supply( value ) Arguments Variant value The contents of the message. Returns None. See Also Channel Channel:demand Channel:push

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

RopeJoint:getMaxLength

RopeJoint:getMaxLength Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the maximum length of a RopeJoint. Function Synopsis maxLength = RopeJoint:getLength( ) Arguments None. Returns number maxLength The maximum length of the RopeJoint. See Also RopeJoint