UNPKG

@box2d/debug-draw

Version:

Debug drawing helper for @box2d

18 lines (17 loc) 797 B
"use strict"; // MIT License Object.defineProperty(exports, "__esModule", { value: true }); exports.b2ChainAndPolygonContact = void 0; const b2_collide_edge_1 = require("../collision/b2_collide_edge"); const b2_edge_shape_1 = require("../collision/b2_edge_shape"); const b2_contact_1 = require("./b2_contact"); /** @internal */ class b2ChainAndPolygonContact extends b2_contact_1.b2Contact { Evaluate(manifold, xfA, xfB) { const edge = b2ChainAndPolygonContact.Evaluate_s_edge; this.GetShapeA().GetChildEdge(edge, this.m_indexA); (0, b2_collide_edge_1.b2CollideEdgeAndPolygon)(manifold, edge, xfA, this.GetShapeB(), xfB); } } exports.b2ChainAndPolygonContact = b2ChainAndPolygonContact; b2ChainAndPolygonContact.Evaluate_s_edge = new b2_edge_shape_1.b2EdgeShape();