Body

Bodies are objects with velocity and position.

Constructors

love.physics.newBodyCreates a new body.

Functions

Body:applyForceApply force to a Body.
Body:applyImpulseApplies an impulse to a body.
Body:applyTorqueApply torque to a body.
Body:destroyExplicitly destroys the Body.
Body:getAllowSleepingReturn whether a body is allowed to sleep.
Body:getAngleGet the angle of the body.
Body:getAngularDampingGets the Angular damping of the Body.
Body:getAngularVelocityGet the angular velocity of the Body.
Body:getInertiaGets the rotational inertia of the body.
Body:getLinearDampingGets the linear damping of the Body.
Body:getLinearVelocityGets the linear velocity of the Body from its center of mass.
Body:getLinearVelocityFromLocalPointGet the linear velocity of a point on the body.
Body:getLinearVelocityFromWorldPointGet the linear velocity of a point on the body.
Body:getLocalCenterGet the center of mass position in local coordinates.
Body:getLocalPointTransform a point from world coordinates to local coordinates.
Body:getLocalVectorTransform a vector from world coordinates to local coordinates.
Body:getMassGet the mass of the body.
Body:getPositionGet the position of the body.
Body:getWorldCenterGet the center of mass position in world coordinates.
Body:getWorldPointTransform a point from local coordinates to world coordinates.
Body:getWorldVectorTransform a vector from local coordinates to world coordinates.
Body:getXGet the x position of the body in world coordinates.
Body:getYGet the y position of the body in world coordinates.
Body:isBulletGet the bullet status of a body.
Body:isDynamicGet the dynamic status of the body.
Body:isFrozenGet the frozen status of the body.
Body:isSleepingGet the sleeping status of a body.
Body:isStaticGet the static status of the body.
Body:putToSleepPut the body to sleep.
Body:setAllowSleepingSet the sleep behaviour of a body.
Body:setAngleSet the angle of the body.
Body:setAngularDampingSets the angular damping of a Body
Body:setAngularVelocitySets the angular velocity of a Body.
Body:setBulletSet the bullet status of a body.
Body:setFixedRotationSet whether a body has fixed rotation.
Body:setInertiaSet the inertia of a body.
Body:setLinearDampingSets the linear damping of a Body.
Body:setLinearVelocitySets a new linear velocity for the Body.
Body:setMassSets the mass properties directly.
Body:setMassFromShapesSets mass properties from attatched shapes.
Body:setPositionSet the position of the body.
Body:setXSet the x position of the body.
Body:setYSet the y position of the body.
Body:wakeUpWake up a sleeping body.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

Object

See Also


Other Languages