SoundData:getSampleRate

SoundData:getSampleRate Returns the sample rate of the SoundData. Function Synopsis rate = SoundData:getSampleRate( ) Arguments None. Returns number rate Number of samples per second. See Also SoundData

WheelJoint:setSpringDampingRatio

WheelJoint:setSpringDampingRatio Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a new damping ratio. Function Synopsis WheelJoint:setSpringDampingRatio( ratio ) Arguments number ratio The new damping ratio. Returns Nothing. See Also WheelJoint WheelJoint:getSpringDampingRatio

love.textinput

love.textinput Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when text has been entered by the user. For example if shift-2 is pressed on an American keyboard layout, the text "@" will be generated. Function Synopsis love.textinput( text ) Arguments string text The UTF-8 encoded unicode text. Returns Nothing. Notes Although Lua strings can store UTF-8 encoded unicode text just fine, many functions in Lua's string library will not treat the text a

Canvas:getFilter

Canvas:getFilter Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the filter mode of the Canvas. Function Synopsis min, mag = Canvas:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the canvas. FilterMode mag Filter mode used when magnifying the canvas. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis min, mag, anisotropy = Canvas:getFilter( ) Arguments None. Retur

Joint:destroy

Joint:destroy Explicitly destroys the Joint. An error will occur if you attempt to use the object after calling this function. In 0.7.2, when you don't have time to wait for garbage collection, this function may be used to free the object immediately. Function Synopsis Joint:destroy( ) Arguments None. Returns Nothing. See Also Joint

Font:getWidth

Font:getWidth Determines the horizontal size a line of text needs. Does not support line-breaks. Function Synopsis width = Font:getWidth( line ) Arguments string line A string. Returns number width The width of the line. See Also Font

PulleyJoint:getRatio

PulleyJoint:getRatio Get the pulley ratio. Function Synopsis ratio = PulleyJoint:getRatio( ) Arguments None. Returns number ratio The pulley ratio of the joint. See Also PulleyJoint

MouseJoint:getTarget

MouseJoint:getTarget Gets the target point. Function Synopsis x, y = MouseJoint:getTarget( ) Arguments None. Returns number x The x-component of the target. number y The x-component of the target. See Also MouseJoint

CircleShape:getRadius

CircleShape:getRadius Gets the radius of the circle shape. Function Synopsis radius = CircleShape:getRadius( ) Arguments None. Returns number radius The radius of the circle See Also CircleShape

Shape:computeAABB

Shape:computeAABB Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the points of the bounding box for the transformed shape. Function Synopsis topLeftX, topLeftY, bottomRightX, bottomRightY = Shape:computeAABB( tx, ty, tr, childIndex ) Arguments number tx The translation of the shape on the x-axis. number ty The translation of the shape on the y-axis. number tr The shape rotation. number childIndex (1) The index of the child to compute the bounding