PackageBox2D.Dynamics.Controllers
Classpublic class b2GravityController
Inheritanceb2GravityController Inheritance b2Controller
Sourceb2GravityController.as

Applies simplified gravity between every pair of bodies



Public Properties
 PropertyDefined by
  G : Number = 1
Specifies the strength of the gravitiation force
b2GravityController
  invSqr : Boolean = true
If true, gravity is proportional to r^-2, otherwise r^-1
b2GravityController
Protected Properties
 PropertyDefined by
 Inheritedm_bodyCount : int
b2Controller
 Inheritedm_bodyList : b2ControllerEdge
b2Controller
Public Methods
 MethodDefined by
 Inherited
AddBody(body:b2Body):void
b2Controller
 Inherited
Clear():void
b2Controller
 Inherited
Draw(debugDraw:b2DebugDraw):void
b2Controller
 Inherited
b2Controller
 Inherited
b2Controller
 Inherited
b2Controller
 Inherited
RemoveBody(body:b2Body):void
b2Controller
  
Step(step:b2TimeStep):void
b2GravityController
Property detail
Gproperty
public var G:Number = 1

Specifies the strength of the gravitiation force

invSqrproperty 
public var invSqr:Boolean = true

If true, gravity is proportional to r^-2, otherwise r^-1

Method detail
Step()method
public override function Step(step:b2TimeStep):voidParameters
step:b2TimeStep