physics.*

Type Library
Revision 2017.3060
Keywords physics, collision, joint, Box2D
See also Physics Setup (guide)
Physics Limitations (guide)
Physics Bodies (guide)
Collision Detection (guide)
Physics Joints (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: 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.toMKS()