ParticleSystem:getDirection

ParticleSystem:getDirection Gets the direction of the particle emitter (in radians). Function Synopsis direction = ParticleSystem:getDirection( ) Arguments None. Returns number direction The direction of the emitter (radians). See Also ParticleSystem

love.physics.newWeldJoint

love.physics.newWeldJoint Available since LÖVE 0.8.0 This function is not supported in earlier versions. Creates a constraint joint between two bodies. A WeldJoint essentially glues two bodies together. The constraint is a bit soft, however, due to Box2D's iterative solver. Function Synopsis joint = love.physics.newWeldJoint( body1, body2, x, y, collideConnected ) Arguments Body body1 The first body to attach to the joint. Body body2 The second body to attach to the joint. number x The

love.math.noise

love.math.noise Available since LÖVE 0.9.0 This function is not supported in earlier versions. Generates a Simplex or Perlin noise value in 1-4 dimensions. The return value will always be the same, given the same arguments. Simplex noise is closely related to Perlin noise. It is widely used for procedural content generation. There are many webpages which discuss Perlin and Simplex noise in detail. The return value might be constant if only integer arguments are used. Avoid solely passing

Fixture:setMask

Fixture:setMask Available since LÖVE 0.8.0 This method is not supported in earlier versions. Fixture:setMask works in NOT.Categories selected will NOT collide with this fixture. If you want to work as Box2d works with Mask use instead Fixture:setFilterData Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16. This fixture will NOT collide with the fixtures that are in the selected categories if the other fixture also has a category

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

Fixture:setUserData

Fixture:setUserData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Associates a Lua value with the fixture. To delete the reference, explicitly pass nil. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis Fixture:setUserData( value ) Arguments any value The Lua value to associate with the fixture. Returns Nothing. See Also Fixture Fixture:getUserData

EdgeShape:setPreviousVertex

EdgeShape:setPreviousVertex Available since LÖVE 0.10.2 This function is not supported in earlier versions. Sets a vertex that establishes a connection to the previous shape. This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis EdgeShape:setPreviousVertex( x, y ) Arguments number x The x-component of the vertex. number y The y-component of the vertex. Returns Nothing. See Also EdgeShape EdgeShape:getPr

WheelJoint:isMotorEnabled

WheelJoint:isMotorEnabled Available since LÖVE 0.8.0 This method is not supported in earlier versions. Checks if the joint motor is running. Function Synopsis on = WheelJoint:isMotorEnabled( ) Arguments None. Returns boolean on The status of the joint motor. See Also WheelJoint

Text:addf

Text:addf Available since LÖVE 0.10.0 This function is not supported in earlier versions. Adds additional formatted / colored text to the Text object at the specified position. Function Synopsis index = Text:addf( textstring, wraplimit, alignmode, x, y, angle, sx, sy, ox, oy, kx, ky ) Arguments string textstring The text to add to the object. number wraplimit The maximum width in pixels of the text before it gets automatically wrapped to a new line. AlignMode align The alignment of the

Source:setDistance

Source:setDistance Available since LÖVE 0.8.0 This function is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to Source:setAttenuationDistances. Sets the reference and maximum distance of the source. Function Synopsis Source:setDistance( ref, max ) Arguments number ref The new reference distance. number max The new maximum distance. Returns Nothing. See Also Source