Body:isDestroyed

Body:isDestroyed Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets whether the Body is destroyed. Destroyed bodies cannot be used. Function Synopsis destroyed = Body:isDestroyed( ) Arguments None. Returns boolean destroyed Whether the Body is destroyed. See Also Body Body:destroy

Body:isBullet

Body:isBullet Get the bullet status of a body. There are two methods to check for body collisions: at their location when the world is updated (default) using continuous collision detection (CCD) The default method is efficient, but a body moving very quickly may sometimes jump over another body without producing a collision. A body that is set as a bullet will use CCD. This is less efficient, but is guaranteed not to jump when moving quickly. Note that static bodies (with zero mass) al

Body:isAwake

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

Body:isActive

Body:isActive Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns whether the body is actively used in the simulation. Function Synopsis status = Body:isActive( ) Arguments None. Returns boolean status True if the body is active or false if not. See Also Body

Body:getY

Body:getY Get the y position of the body in world coordinates. Function Synopsis y = Body:getY( ) Arguments None. Returns number y The y position in world coordinates. See Also Body

Body:getX

Body:getX Get the x position of the body in world coordinates. Function Synopsis x = Body:getX( ) Arguments None. Returns number x The x position in world coordinates. See Also Body

Body:getWorldVector

Body:getWorldVector Transform a vector from local coordinates to world coordinates. Function Synopsis worldX, worldY = Body:getWorldVector( localX, localY ) Arguments number localX The vector x component in local coordinates. number localY The vector y component in local coordinates. Returns number worldX The vector x component in world coordinates. number worldY The vector y component in world coordinates. See Also Body

Body:getWorldPoints

Body:getWorldPoints Available since LÖVE 0.8.0 This method is not supported in earlier versions. Transforms multiple points from local coordinates to world coordinates. Function Synopsis x1, y1, x2, y2, ... = Body:getWorldPoints( x1, y1, x2, y2, ... ) Arguments number x1 The x position of the first point. number y1 The y position of the first point. number x2 The x position of the second point. number y2 The y position of the second point. Returns number x1 The transformed x positio

Body:getWorldPoint

Body:getWorldPoint Transform a point from local coordinates to world coordinates. Function Synopsis worldX, worldY = Body:getWorldPoint( localX, localY ) Arguments number localX The x position in local coordinates. number localY The y position in local coordinates. Returns number worldX The x position in world coordinates. number worldY The y position in world coordinates. See Also Body

Body:getWorldCenter

Body:getWorldCenter Get the center of mass position in world coordinates. Use Body:getLocalCenter to get the center of mass in local coordinates. Function Synopsis x, y = Body:getWorldCenter( ) Arguments None. Returns number x The x coordinate of the center of mass. number y The y coordinate of the center of mass. See Also Body