Start using the sdf-2d library
This commit is contained in:
parent
99f47e2961
commit
1b7dee4be0
1 changed files with 314 additions and 2119 deletions
|
|
@ -1,15 +1,12 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
import { BoundingBox } from './bounding-box';
|
||||
import { GameObject } from '../objects/game-object';
|
||||
import { BoundingBox } from './bounding-box';
|
||||
|
||||
export interface IShape {
|
||||
readonly isInverted: boolean;
|
||||
readonly boundingBox: BoundingBox;
|
||||
|
||||
readonly gameObject?: GameObject;
|
||||
|
||||
distance(target: vec2): number;
|
||||
minDistance(target: vec2): number;
|
||||
normal(from: vec2): vec2;
|
||||
|
||||
clone(): IShape;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue