SpriteBatch:lock

SpriteBatch:lock This has been changed to SpriteBatch:bind

RevoluteJoint:isMotorEnabled

RevoluteJoint:isMotorEnabled Checks whether the motor is enabled. Function Synopsis enabled = RevoluteJoint:isMotorEnabled( ) Arguments None. Returns boolean enabled True if enabled, false if disabled. See Also RevoluteJoint

Body:getInertia

Body:getInertia Gets the rotational inertia of the body. The rotational inertia is how hard is it to make the body spin. It is set with the 4th argument to Body:setMass, or automatically with Body:setMassFromShapes. Function Synopsis inertia = Body:getInertia( ) Arguments None. Returns number inertia The rotational inertial of the body. See Also Body

Channel:getCount

Channel:getCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the number of messages in the thread Channel queue. Function Synopsis value = Channel:getCount( ) Arguments None. Returns number count The number of messages in the queue. See Also Channel Channel:pop

Body:setMass

Body:setMass Sets a new body mass. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis body:setMass( mass ) Arguments number mass The mass, in kilograms. Returns Nothing. Function Removed in LÖVE 0.8.0 This variant is not supported in that and later versions. Sets the mass properties directly. If you're not sure what all this stuff means, you can use Body:setMassFromShapes after adding shapes instead. The first two parameters will be th

Body:setAngularVelocity

Body:setAngularVelocity Sets the angular velocity of a Body. The angular velocity is the rate of change of angle over time. This function will not accumulate anything; any impulses previously applied since the last call to World:update will be lost. Function Synopsis Body:setAngularVelocity( w ) Arguments number w The new angular velocity, in radians per second Returns Nothing. See Also Body

Body:setAngularDamping

Body:setAngularDamping Sets the angular damping of a Body See Body:getAngularDamping for a definition of angular damping. Angular damping can take any value from 0 to infinity. It is recommended to stay between 0 and 0.1, though. Other values will look unrealistic. Function Synopsis Body:setAngularDamping( damping ) Arguments number damping The new angular damping. Returns Nothing. See Also Body

Shape:isSensor

Shape:isSensor Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Checks whether a Shape is a sensor or not. Function Synopsis s = Shape:isSensor( ) Arguments None. Returns boolean s True if sensor, false otherwise. See Also Shape

Source:getVelocity

Source:getVelocity Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets the velocity of the Source. Function Synopsis x, y, z = Source:getVelocity( ) Arguments None. Returns number x The X part of the velocity vector. number y The Y part of the velocity vector. number z The Z part of the velocity vector. See Also Source Source:setVelocity

Body:setY

Body:setY Set the y position of the body. This function cannot wake up the body. Function Synopsis Body:setY( y ) Arguments number y The y position. Returns Nothing. See Also Body