blaze-2d
Version:
A fast and simple WebGL 2 2D game engine written in TypeScript
17 lines (16 loc) • 676 B
TypeScript
import { vec2 } from "gl-matrix";
import Manifold from "../../manifold";
/**
* Solves the impulse for a collision described by a {@link Manifold}.
*
* @param m {@link Manifold} describing the collision to solve the impulse for
*/
export default function solveImpulse(m: Manifold): void;
/**
* Calculates the relative velocity for the impulse resolution of a collision between 2 {@link CollisionObject}s.
*
* @param m The manifold of the collision between **a** and **b**
* @param contactA The contact point on **a**
* @param contactB The contact point on **b**
*/
export declare function calculateRelativeVelocity(m: Manifold, contactA: vec2, contactB: vec2): vec2;