UNPKG

the-world-engine

Version:

three.js based, unity like game engine for browser

13 lines (11 loc) 395 B
import { b2CollidePolygonAndCircle } from "../collision/b2_collide_circle.js"; import { b2Contact } from "./b2_contact.js"; export class b2PolygonAndCircleContact extends b2Contact { static Create() { return new b2PolygonAndCircleContact; } static Destroy(o) {} Evaluate(o, t, l) { b2CollidePolygonAndCircle(o, this.GetShapeA(), t, this.GetShapeB(), l); } }