Fix collision detection
This commit is contained in:
parent
006ab3c4e6
commit
5b4e67cbf0
1 changed files with 169 additions and 49 deletions
3
frontend/src/scripts/helper/rotate-90-deg.ts
Normal file
3
frontend/src/scripts/helper/rotate-90-deg.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
|
||||
export const rotate90Deg = (vec: vec2): vec2 => vec2.fromValues(-vec.y, vec.x);
|
||||
Loading…
Reference in a new issue