Body

Parent Object
Library physics.*
Revision Release 2024.3703
Keywords physics, bodies, body
See also physics.addBody()
Physics Bodies (guide)

Overview

Body objects are what interact with the physics world in Corona, are attached to display objects and are created using physics.addBody().

Properties

(Inherits properties from Object)

object.angularDamping

object.angularVelocity

object.bodyType

object.gravityScale

object.isAwake

object.isBodyActive

object.isBullet

object.isFixedRotation

object.isSensor

object.isSleepingAllowed

object.linearDamping

object.mass

Methods

(Inherits methods from Object)

object:applyAngularImpulse()

object:applyForce()

object:applyLinearImpulse()

object:applyTorque()

object:getLinearVelocity()

object:getMassLocalCenter()

object:getMassWorldCenter()

object:resetMassData()

object:setLinearVelocity()