Body:setAllowSleeping

Body:setAllowSleeping Removed in LÖVE 0.8.0 It has been replaced by Body:setSleepingAllowed. Set the sleep behaviour of a body. A sleeping body is much more efficient to simulate than when awake. If sleeping is allowed, a body that has come to rest will sleep. Function Synopsis Body:setAllowSleeping( permission ) Arguments boolean permission Permission for the body to sleep. Returns Nothing. See Also Body

Body:setActive

Body:setActive Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets whether the body is active in the world. An inactive body does not take part in the simulation. It will not move or cause any collisions. Function Synopsis Body:setActive( active ) Arguments boolean active If the body is active or not. Returns Nothing. See Also Body

Body:resetMassData

Body:resetMassData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Resets the mass of the body by recalculating it from the mass properties of the fixtures. Function Synopsis Body:resetMassData( ) Arguments None. Returns Nothing. See Also Body

Body:putToSleep

Body:putToSleep Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Put the body to sleep. A sleeping body is much more efficient to simulate than when awake. The body will wake up if another body collides with it, if a joint or contact attached to it is destroyed, or if Body:wakeUp is called. Function Synopsis Body:putToSleep( ) Arguments None. Returns Nothing. See Also Body

Body:isStatic

Body:isStatic Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Get the static status of the body. A static body has no mass and a constant position. It will not react to collisions. Often used for walls. A dynamic body has mass and can move. It will react to collisions when the world is updated. Function Synopsis status = Body:isStatic( ) Arguments None. Returns boolean status The static status of the body. See Also Body

Body:isSleepingAllowed

Body:isSleepingAllowed Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the sleeping behaviour of the body. Function Synopsis allowed = Body:isSleepingAllowed( ) Arguments None. Returns boolean allowed True if the body is allowed to sleep or false if not. See Also Body Body:setSleepingAllowed

Body:isSleeping

Body:isSleeping Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Get the sleeping status of a body. A sleeping body is much more efficient to simulate than when awake. If sleeping is allowed, a body that has come to rest will sleep. Function Synopsis status = Body:isSleeping( ) Arguments None. Returns boolean status The sleeping status of the body. See Also Body

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

Body:isFixedRotation

Body:isFixedRotation Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns whether the body rotation is locked. Function Synopsis fixed = Body:isFixedRotation( ) Arguments None. Returns boolean fixed True if the body's rotation is locked or false if not. See Also Body

Body:isDynamic

Body:isDynamic Removed in LÖVE 0.8.0 It has been replaced by Body:getType. Get the dynamic status of the body. A static body has no mass and a constant position. It will not react to collisions. Often used for walls. A dynamic body has mass and can move. It will react to collisions when the world is updated. Function Synopsis status = Body:isDynamic( ) Arguments None. Returns boolean status The dynamic status of the body. See Also Body