@box2d/debug-draw
Version:
Debug drawing helper for @box2d
15 lines (14 loc) • 700 B
TypeScript
import { b2Transform } from "../common/b2_math";
import { b2Readonly } from "../common/b2_readonly";
import { b2Manifold } from "./b2_collision";
import { b2PolygonShape } from "./b2_polygon_shape";
/**
* Find edge normal of max separation on A - return if separating axis is found
* Find edge normal of max separation on B - return if separation axis is found
* Choose reference edge as min(minA, minB)
* Find incident edge
* Clip
* The normal points from 1 to 2
*/
export declare function b2CollidePolygons(manifold: b2Manifold, polyA: b2PolygonShape, xfA: b2Readonly<b2Transform>, polyB: b2PolygonShape, xfB: b2Readonly<b2Transform>): void;
//# sourceMappingURL=b2_collide_polygon.d.ts.map