summaryrefslogtreecommitdiffstats
path: root/src/renderer/math/collision.ts
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-12-08 12:39:18 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-12-08 12:39:18 +0100
commitb3950330e3351437f153c6c1debb3821d6e28864 (patch)
tree0b381b523045bd59cd679825a11976a45813fc24 /src/renderer/math/collision.ts
parent439dcf391784ea3abb61473c74b9c27fcd9fdc2d (diff)
downloadrpgedit-b3950330e3351437f153c6c1debb3821d6e28864.tar
rpgedit-b3950330e3351437f153c6c1debb3821d6e28864.zip
Create Electron app
Diffstat (limited to 'src/renderer/math/collision.ts')
-rw-r--r--src/renderer/math/collision.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/renderer/math/collision.ts b/src/renderer/math/collision.ts
new file mode 100644
index 0000000..3df811a
--- /dev/null
+++ b/src/renderer/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;
+}