Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies simplified gravity between every pair of bodies.

Hierarchy

Index

Constructors

Properties

G: number

Specifies the strength of the gravitation force.

default

= 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

  • Clear(): void
  • RemoveBody(body: b2Body): void
  • Step(step: any): void

Generated using TypeDoc