@box2d/debug-draw
Version:
Debug drawing helper for @box2d
18 lines (17 loc) • 790 B
JavaScript
;
// MIT License
Object.defineProperty(exports, "__esModule", { value: true });
exports.b2ChainAndCircleContact = 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 b2ChainAndCircleContact extends b2_contact_1.b2Contact {
Evaluate(manifold, xfA, xfB) {
const edge = b2ChainAndCircleContact.Evaluate_s_edge;
this.GetShapeA().GetChildEdge(edge, this.m_indexA);
(0, b2_collide_edge_1.b2CollideEdgeAndCircle)(manifold, edge, xfA, this.GetShapeB(), xfB);
}
}
exports.b2ChainAndCircleContact = b2ChainAndCircleContact;
b2ChainAndCircleContact.Evaluate_s_edge = new b2_edge_shape_1.b2EdgeShape();