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: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: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: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: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: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:setAngle

Body:setAngle Set the angle of the body. The angle is measured in radians. If you need to transform it from degrees, use math.rad. A value of 0 radians will mean "looking to the right". .Although radians increase counter-clockwise, the y axis points down so it becomes clockwise from our point of view. It is possible to cause a collision with another body by changing its angle. Function Synopsis Body:setAngle( angle ) Arguments number angle The angle in radians. Returns Nothing. See Al

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

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:setAwake

Body:setAwake Available since LÖVE 0.8.0 This method is not supported in earlier versions. Wakes the body up or puts it to sleep. Function Synopsis Body:setAwake( awake ) Arguments boolean awake The body sleep status. Returns Nothing. See Also Body Body:isAwake