/** * Applies top down linear damping to the controlled bodies * The damping is calculated by multiplying velocity by a matrix * in local co-ordinates. */ export class b2TensorDampingController extends b2Controller { constructor(...args: any[]); T: b2Mat22; maxTimestep: number; /** * @see b2Controller::Step */ Step(step: any): void; Draw(draw: any): void; /** * Sets damping independantly along the x and y axes */ SetAxisAligned(xDamping: any, yDamping: any): void; } export namespace b2TensorDampingController { const Step_s_damping: b2Vec2; } import { b2Controller } from "./b2_controller.js"; import { b2Mat22 } from "../common/b2_math.js"; import { b2Vec2 } from "../common/b2_math.js";