decla-red/backend/src/physics/physical.ts
schmelczerandras f9f6825776 Fix physics
2020-10-12 20:49:17 +02:00

12 lines
344 B
TypeScript

import { vec2 } from 'gl-matrix';
import { GameObject } from 'shared';
import { BoundingBoxBase } from './bounding-boxes/bounding-box-base';
export interface Physical {
readonly canCollide: boolean;
readonly canMove: boolean;
readonly boundingBox: BoundingBoxBase;
readonly gameObject: GameObject;
distance(target: vec2): number;
}