PhysicsScene.create
Factory to create object.
Syntax
create(gx, gy,options = {})
Parameters
gx : Float | - Gravity on x-axis
gy : Float | - Gravity on y-axis
options : Object | - options
- sleep Boolean If true sleep is enable, default is false.
- enableCollisions Boolean If true collision is enabled, default is true.
- calledClass Class The called class, default is PhysicsScene.
Returns
Returns type: PhysicsScene
Defined in
PhysicsScene