Refactor rendering
This commit is contained in:
parent
edca93fcfe
commit
76282a4cf7
1 changed files with 239 additions and 213 deletions
|
|
@ -1,10 +1,13 @@
|
|||
import { BoundingBox } from './bounding-box';
|
||||
import { vec2 } from 'gl-matrix';
|
||||
import { GameObject } from '../objects/game-object';
|
||||
|
||||
export interface IShape {
|
||||
readonly isInverted: boolean;
|
||||
readonly boundingBox: BoundingBox;
|
||||
|
||||
readonly gameObject?: GameObject;
|
||||
|
||||
distance(target: vec2): number;
|
||||
normal(from: vec2): vec2;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue