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

Hierarchy (View Summary)

Constructors

Properties

m_bodyCount: number

Body count.

m_bodyList: b2ControllerEdge

List of bodies.

maxTimeStep: number

Set this to a positive number to clamp the maximum amount of damping done.

= 0

Tensor to use in damping model.

Methods

  • Helper function to set T in a common case.

    Parameters

    • xDamping: number

      x

    • yDamping: number

      y

    Returns void