Options
All
  • Public
  • Public/Protected
  • All
Menu

Base class for controllers. Controllers are a convience for encapsulating common per-step functionality.

Hierarchy

Index

Constructors

constructor

Properties

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

  • Gets the body list.

    Returns b2ControllerEdge

    Body list.

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
  • Step

    Parameters

    • step: any

      b2TimeStep -> Private internal class. Not sure why this is exposed.

    Returns void

Generated using TypeDoc