Skip to content

Instantly share code, notes, and snippets.

@kfalicov
kfalicov / minkowski.ts
Created January 1, 2025 19:07
A messy first-attempt approach at creating swept/shapecast AABB colliders in excalibur
import {
vec,
Vector,
} from 'excalibur';
/**
* sweeps a polygon p along another polygon q by using minkowski to sum the two polygons.
* @param p the first polygon
* @param q the second polygon
*/