physics.*

Type Library
Revision Release 2022.3683
Keywords physics, collision, joint, Box2D
See also Physics Setup (guide)
Physics Bodies (guide)
Collision Detection (guide)
Physics Joints (guide)
Physics Notes/Limitations (guide)

Overview

Physics are commonly used for apps that involve a simulation of objects that move, collide, and interact under various physical forces like gravity. Corona makes it very easy to add physics to your apps, even if you've never worked with a physics engine before. While the underlying engine is built around the popular Box2D, we've taken a different design approach which eliminates a lot of the coding that is traditionally required.

To work with the Corona physics engine, just begin with familiar Corona display objects. Corona treats physical body properties as an extension of its graphics objects, so any standard display object including images, vector objects, or animated sprites can be "made physical" and they will automatically interact with other objects in the simulation.

Properties

Functions

physics.fromMKS()