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

PulleyJoint:setConstant

PulleyJoint:setConstant Set the total length of the rope. Setting a new length for the rope updates the maximum length values of the joint. Function Synopsis PulleyJoint:setConstant( length ) Arguments number length The new length of the rope in the joint. Returns Nothing. See Also PulleyJoint PulleyJoint:getMaxLengths

PulleyJoint:setMaxLengths

PulleyJoint:setMaxLengths Set the maximum lengths of the rope segments. The physics module also imposes maximum values for the rope segments. If the parameters exceed these values, the maximum values are set instead of the requested values. Function Synopsis PulleyJoint:setMaxLengths( max1, max2 ) Arguments number max1 The new maximum length of the first segment. number max2 The new maximum length of the second segment. Returns Nothing. See Also PulleyJoint

PulleyJoint:setRatio

PulleyJoint:setRatio Set the pulley ratio. Function Synopsis PulleyJoint:setRatio( ratio ) Arguments number ratio The new pulley ratio of the joint. Returns Nothing. See Also PulleyJoint

Quad:flip

Quad:flip Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Flips this quad horizontally, vertically, or both. Function Synopsis Quad:flip( x, y ) Arguments boolean x True to flip horizontally, false to leave as-is. boolean y True to flip vertically, false to leave as-is. Returns Nothing. See Also Quad

Quad:getTextureDimensions

Quad:getTextureDimensions Available since LÖVE 0.10.2 This function is not supported in earlier versions. Gets reference texture dimensions initially specified in love.graphics.newQuad. Function Synopsis sw, sh = Quad:getTextureDimensions( ) Arguments None. Returns number sw The Texture width used by the Quad. number sh The Texture height used by the Quad. See Also Quad Quad:getViewport

Quad:getViewport

Quad:getViewport Gets the current viewport of this Quad. Function Synopsis x, y, w, h = Quad:getViewport( ) Arguments None. Returns number x The top-left corner along the x-axis. number y The top-right corner along the y-axis. number w The width of the viewport. number h The height of the viewport. See Also Quad

Quad:setViewport

Quad:setViewport Sets the texture coordinates according to a viewport. Function Synopsis Quad:setViewport( x, y, w, h ) Arguments number x The top-left corner along the x-axis. number y The top-right corner along the y-axis. number w The width of the viewport. number h The height of the viewport. Returns Nothing. See Also Quad

RandomGenerator:getSeed

RandomGenerator:getSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the seed of the random number generator object. The seed is split into two numbers due to Lua's use of doubles for all number values - doubles can't accurately represent integer values above 2^53, but the seed value is an integer number in the range of [0, 2^64 - 1]. Function Synopsis low, high = RandomGenerator:getSeed( ) Arguments None. Returns number low Integer number represen

RandomGenerator:getState

RandomGenerator:getState Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the current state of the random number generator. This returns an opaque implementation-dependent string which is only useful for later use with RandomGenerator:setState. This is different from RandomGenerator:getSeed in that getState gets the RandomGenerator's current state, whereas getSeed gets the previously set seed number. Function Synopsis state = RandomGenerator:getState( )