summaryrefslogtreecommitdiffstats
path: root/src/renderer/runtime/math/collision.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/runtime/math/collision.ts')
-rw-r--r--src/renderer/runtime/math/collision.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/renderer/runtime/math/collision.ts b/src/renderer/runtime/math/collision.ts
new file mode 100644
index 0000000..3df811a
--- /dev/null
+++ b/src/renderer/runtime/math/collision.ts
@@ -0,0 +1,7 @@
+import { Movement } from './line';
+
+import { vec2 } from 'gl-matrix';
+
+export interface Collidable {
+ collide(out: vec2, move: Movement, r: number): boolean;
+}