the-world-engine
Version:
three.js based, unity like game engine for browser
13 lines (11 loc) • 362 B
JavaScript
import { b2CollidePolygons } from "../collision/b2_collide_polygon.js";
import { b2Contact } from "./b2_contact.js";
export class b2PolygonContact extends b2Contact {
static Create() {
return new b2PolygonContact;
}
static Destroy(o) {}
Evaluate(o, t, l) {
b2CollidePolygons(o, this.GetShapeA(), t, this.GetShapeB(), l);
}
}