Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2TensorDampingController

Applies top down linear damping to the controlled bodies The damping is calculated by multiplying velocity by a matrix in local co-ordinates.

Hierarchy

Index

Properties

Readonly T

T: b2Mat22 = new b2Mat22()

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

maxTimestep

maxTimestep: number = 0

Static Private Step_s_damping

Step_s_damping: b2Vec2 = new b2Vec2()

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

SetAxisAligned

  • SetAxisAligned(xDamping: number, yDamping: number): void
  • Sets damping independantly along the x and y axes

    Parameters

    • xDamping: number
    • yDamping: number

    Returns void

Step

  • see

    b2Controller::Step

    Parameters

    Returns void

Generated using TypeDoc