Body:setBullet

Body:setBullet Set 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) a

Body:setFixedRotation

Body:setFixedRotation Set whether a body has fixed rotation. Bodies with fixed rotation don't vary the speed at which they rotate. WARNING: LÖVE 0.6.2 does not yet contain the fix for a bug with this function when it is called with a false argument. Function Synopsis Body:setFixedRotation( isFixed ) Arguments boolean isFixed Whether the body should have fixed rotation. Returns Nothing. See Also Body

Body:setGravityScale

Body:setGravityScale Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a new gravity scale factor for the body. Function Synopsis Body:setGravityScale( scale ) Arguments number scale The new gravity scale factor. Returns Nothing. See Also Body Body:getGravityScale

Body:setInertia

Body:setInertia Set the inertia of a body. This value can also be set by the fourth argument of Body:setMass. Function Synopsis Body:setInertia( inertia ) Arguments number inertia The new moment of inertia, in kilograms * pixel squared. Returns Nothing. See Also Body

Body:setLinearDamping

Body:setLinearDamping Sets the linear damping of a Body See Body:getLinearDamping for a definition of linear damping. Linear damping can take any value from 0 to infinity. It is recommended to stay between 0 and 0.1, though. Other values will make the objects look "floaty"(if gravity is enabled). Function Synopsis Body:setLinearDamping( ld ) Arguments number ld The new linear damping Returns Nothing. See Also Body

Body:setLinearVelocity

Body:setLinearVelocity Sets a new linear velocity for the Body. This function will not accumulate anything; any impulses previously applied since the last call to World:update will be lost. Function Synopsis Body:setLinearVelocity( x, y ) Arguments number x The x-component of the velocity vector. number y The y-component of the velocity vector. Returns Nothing. See Also Body

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

Body:setMassData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Overrides the calculated mass data. Function Synopsis Body:setMassData( x, y, mass, inertia ) Arguments number x The x position of the center of mass. number y The y position of the center of mass. number mass The mass of the body. number inertia The rotational inertia. Returns Nothing. See Also Body Body:getMassData

Body:setMassFromShapes

Body:setMassFromShapes Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Sets mass properties from attatched shapes. If you feel that finding the correct mass properties is tricky, then this function may be able to help you. After creating the needed shapes on the Body, a call to this function will set the mass properties based on those shapes. Remember to call this function after adding the shapes. Setting the mass properties this way always results in a rea

Body:setPosition

Body:setPosition Set the position of the body. Note that this may not be the center of mass of the body. This function cannot wake up the body. Function Synopsis Body:setPosition( x, y ) Arguments number x The x position. number y The y position. Returns Nothing. See Also Body