Body:getGravityScale

Body:getGravityScale Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the gravity scale factor. Function Synopsis scale = Body:getGravityScale( ) Arguments None. Returns number scale The gravity scale factor. See Also Body

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

Body:getJointList

Body:getJointList Available since LÖVE 0.9.2 This method is not supported in earlier versions. Returns a table containing the Joints attached to this Body. Function Synopsis joints = Body:getJointList( ) Arguments None. Returns table joints A sequence with the Joints attached to the Body. See Also Body

Body:getLinearDamping

Body:getLinearDamping Gets the linear damping of the Body. The linear damping is the rate of decrease of the linear velocity over time. A moving body with no damping and no external forces will continue moving indefinitely, as is the case in space. A moving body with damping will gradually stop moving. Damping is not the same as friction - they can be modelled together. Function Synopsis damping = Body:getLinearDamping( ) Arguments None. Returns number damping The value of the linear damp

Body:getLinearVelocity

Body:getLinearVelocity Gets the linear velocity of the Body from its center of mass. The linear velocity is the rate of change of position over time. If you need the rate of change of angle over time, use Body:getAngularVelocity. If you need to get the linear velocity of a point different from the center of mass: Body:getLinearVelocityFromLocalPoint allows you to specify the point in local coordinates. Body:getLinearVelocityFromWorldPoint allows you to specify the point in world coordinat

Body:getLinearVelocityFromLocalPoint

Body:getLinearVelocityFromLocalPoint Get the linear velocity of a point on the body. The linear velocity for a point on the body is the velocity of the body center of mass plus the velocity at that point from the body spinning. The point on the body must given in local coordinates. Use Body:getLinearVelocityFromWorldPoint to specify this with world coordinates. Function Synopsis vx, vy = Body:getLinearVelocityFromLocalPoint( x, y ) Arguments number x The x position to measure velocity. num

Body:getLinearVelocityFromWorldPoint

Body:getLinearVelocityFromWorldPoint Get the linear velocity of a point on the body. The linear velocity for a point on the body is the velocity of the body center of mass plus the velocity at that point from the body spinning. The point on the body must given in world coordinates. Use Body:getLinearVelocityFromLocalPoint to specify this with local coordinates. Function Synopsis vx, vy = Body:getLinearVelocityFromWorldPoint( x, y ) Arguments number x The x position to measure velocity. num

Body:getLocalCenter

Body:getLocalCenter Get the center of mass position in local coordinates. Use Body:getWorldCenter to get the center of mass in world coordinates. Function Synopsis x, y = Body:getLocalCenter( ) 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

Body:getLocalPoint

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

Body:getLocalVector

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