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