Applies simplified gravity between every pair of bodies.

Hierarchy (View Summary)

Constructors

Properties

G: number

Specifies the strength of the gravitation force.

= 1
invSqr: boolean

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

m_bodyCount: number

Body count.

m_bodyList: b2ControllerEdge

List of bodies.

Methods