Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Constructors

Properties

Tensor to use in damping model.

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.

default

= 0

Methods

  • Clear(): void
  • RemoveBody(body: b2Body): void
  • SetAxisAligned(xDamping: number, yDamping: number): void
  • Helper function to set T in a common case.

    Parameters

    • xDamping: number

      x

    • yDamping: number

      y

    Returns void

  • Step(step: any): void

Generated using TypeDoc