Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2ConstantForceController

Applies a force every frame

Hierarchy

Index

Properties

Readonly F

F: b2Vec2 = new b2Vec2(0, 0)

The force to apply

m_bodyCount

m_bodyCount: number = 0

m_bodyList

m_bodyList: b2ControllerEdge | null = null

m_next

m_next: b2Controller | null = null

m_prev

m_prev: b2Controller | null = null

Methods

AddBody

  • Adds a body to the controller list.

    Parameters

    Returns void

Clear

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

    Returns void

Draw

  • Parameters

    Returns void

GetBodyList

GetNext

  • Get the next controller in the world's body list.

    Returns b2Controller | null

GetPrev

  • Get the previous controller in the world's body list.

    Returns b2Controller | null

RemoveBody

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

    Parameters

    Returns void

Step

  • Parameters

    Returns void

Generated using TypeDoc