Content:
- Methods

Adds the Box2D physics engine to your game.

phs = gfx.AddPhysics( gravity, accuracy, sleep )

Example - Billiard click to expand contents 

Example - Collision click to expand contents 

The method list below shows the functions which are added to game objects when using physics.

Methods

The following methods are available on the Physics object:

Contains( x, y ) → Boolean
GetVelocity( component ) → Number