Corona Physics
Corona incorporates the Box2d physics engine. The physics engine allow you create objects that move and interact like real physical objects. The engine works in flat 2d space.
The Corona implementation of Box2d is simple and intuitive to use. making it incredibly easy to add physics based motion to any project.
Starting physics
To work with physics you’ll to load the physics library and start the physics engine.
Start the physics engine by loading it with:
local physics = require( "physics" )
From here you’ll create physics objects and control the general physics environment through the variable physics defined in the line of code above.
Then start physics with:
physics.start()
Note: You must call start physics, with the line above doing anything else with physics.
Continue reading Corona – Physics