Options
All
  • Public
  • Public/Protected
  • All
Menu

Applies an acceleration every frame, like gravity

Hierarchy

Index

Constructors

constructor

Properties

A

The acceleration to apply.

m_bodyCount

m_bodyCount: number

Body count.

m_bodyList

m_bodyList: b2ControllerEdge

List of bodies.

Methods

AddBody

  • Adds a body to the controller.

    Parameters

    Returns void

Clear

  • Clear(): void
  • Removes all bodies from the controller.

    Returns void

Draw

  • Debug drawing.

    Parameters

    Returns void

GetBodyList

GetNext

  • Gets the next controller.

    Returns b2Controller

    Next controller.

GetWorld

  • Gets the world.

    Returns b2World

    World.

RemoveBody

  • RemoveBody(body: b2Body): void
  • Removes a body from the controller.

    Parameters

    • body: b2Body

      Body to remove from this controller.

    Returns void

Step

  • Step(step: any): void
  • see

    b2Controller.Step

    Parameters

    • step: any

    Returns void

Generated using TypeDoc