physics

dmc_trajectory is a Lua module which moves objects following ballistic trajectories (parabolic motion) without using the physics engine. The module can also auto-rotate objects to match the slope of the trajectory path. Using it is as simple as setting up a transition with a few Corona parameters.

Comments, 776 Votes - submitted on 02/05/2014 view repo

I've tried to implement a similar drag effect as seen here: http://www.iforce2d.net/b2dtut/sticky-projectiles

Comments, 372 Votes - submitted on 14/03/2014 view repo

This function flips a single or multi-element physics body and returns the flipped shape declaration for usage within the "physics.addBody()" API. Currently, this version only supports horizontal flipping (reflection across a theoretical center vertical axis).

Comments, 478 Votes - submitted on 12/02/2014 view repo

This is a port to LUA and Corona SDK of the Convex Separator for Box2D class written by Antoon Angelov.
It converts complex, non-convex shapes into fully supported multi-bodies.

Comments, 1 Vote - submitted on 25/01/2014 view repo

To help with the calculation of physics collision categories and masks there is an excellent table available:
http://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/

Comments, 503 Votes - submitted on 21/01/2014 view repo