Start using the sdf-2d library

This commit is contained in:
schmelczerandras 2020-09-21 09:42:00 +02:00
commit 1b7dee4be0

View file

@ -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;
}