UNPKG

the-world-engine

Version:

three.js based, unity like game engine for browser

13 lines (11 loc) 385 B
import { b2CollideEdgeAndPolygon } from "../collision/b2_collide_edge.js"; import { b2Contact } from "./b2_contact.js"; export class b2EdgeAndPolygonContact extends b2Contact { static Create() { return new b2EdgeAndPolygonContact; } static Destroy(o) {} Evaluate(o, t, e) { b2CollideEdgeAndPolygon(o, this.GetShapeA(), t, this.GetShapeB(), e); } }