Fixture:getShape

Fixture:getShape Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the shape of the fixture. This shape is a reference to the actual data used in the simulation. It's possible to change its values between timesteps. Do not call any functions on this shape after the parent fixture has been destroyed. This shape will point to an invalid memory address and likely cause crashes if you interact further with it. Function Synopsis shape = Fixture:getShape( ) Ar

Contact:getPosition

Contact:getPosition Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Get the location of the contact point between two shapes. Function Synopsis cx, cy = Contact:getPosition( ) Arguments None. Returns number cx The x coordinate of the contact point. number cy The y coordinate of the contact point. See Also Contact

love.graphics.print

love.graphics.print Draws text on screen. If no Font is set, one will be created and set (once) if needed. As of LOVE 0.7.1, when using translation and scaling functions while drawing text, this function assumes the scale occurs first. If you don't script with this in mind, the text won't be in the right position, or possibly even on screen. love.graphics.print and love.graphics.printf both suppport UTF-8 encoding. You'll also need a proper Font for special characters. Function Synopsis love

RandomGenerator:setSeed

RandomGenerator:setSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the seed of the random number generator using the specified integer number. Function Synopsis RandomGenerator:setSeed( seed ) Arguments number seed The integer number with which you want to seed the randomization. Must be within the range of [1, 2^53]. Returns Nothing. Notes Due to Lua's use of double-precision floating point numbers, values above 2^53 cannot be accurately repres

love.system.vibrate

love.system.vibrate Available since LÖVE 0.10.0 This function is not supported in earlier versions. Causes the device to vibrate, if possible. Currently this will only work on Android and iOS devices that have a built-in vibration motor. Function Synopsis love.system.vibrate( seconds ) Arguments number seconds (0.5) The duration to vibrate for. If called on an iOS device, it will always vibrate for 0.5 seconds due to limitations in the iOS system APIs. Returns Nothing. See Also love.s

love.audio.setOrientation

love.audio.setOrientation Sets the orientation of the listener. Function Synopsis love.audio.setOrientation( fx, fy, fz, ux, uy, uz ) Arguments number fx, fy, fz Forward vector of the listener orientation. number ux, uy, uz Up vector of the listener orientation. Returns Nothing. See Also love.audio

love.visible

love.visible Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Callback function triggered when window is minimized/hidden or unminimized by the user. Function Synopsis love.visible( visible ) Arguments boolean visible True if the window is visible, false if it isn't. Returns Nothing. Example function love.visible(v) print(v and "Window is visible!" or "Window is not visible!"); end See Also love

Body:isFrozen

Body:isFrozen Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Get the frozen status of the body. A body becomes frozen when it goes outside the world boundary. A frozen body is no longer changed by World:update. Function Synopsis status = Body:isFrozen( ) Arguments None. Returns boolean status The frozen status of the body. See Also Body

ParticleSystem:pause

ParticleSystem:pause Pauses the particle emitter. Function Synopsis ParticleSystem:pause( ) Arguments None. Returns Nothing. See Also ParticleSystem

Body:applyTorque

Body:applyTorque Apply torque to a body. Torque is like a force that will change the angular velocity (spin) of a body. The effect will depend on the rotational inertia a body has. Function Synopsis Body:applyTorque( torque ) Arguments number torque The torque to apply. Returns Nothing. See Also Body