summaryrefslogtreecommitdiffstats
path: root/src/math/collision.ts
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-11-05 19:59:39 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-11-05 19:59:39 +0100
commitfd59aaa55c39c583af86f4dc059cbe9cedd085d2 (patch)
tree7e19b71ce1ecdf616f230ecd271400141b3e6503 /src/math/collision.ts
parent9be9f8e73940f1a38410575557fcd57cc620a8f4 (diff)
downloadrpgedit-fd59aaa55c39c583af86f4dc059cbe9cedd085d2.tar
rpgedit-fd59aaa55c39c583af86f4dc059cbe9cedd085d2.zip
More generic collision handling
Diffstat (limited to 'src/math/collision.ts')
-rw-r--r--src/math/collision.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/collision.ts b/src/math/collision.ts
new file mode 100644
index 0000000..3df811a
--- /dev/null
+++ b/src/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;
+}