UNPKG

@matematrolii/sketchbook

Version:

3D matematrolii playground built on three.js and cannon.js

14 lines (13 loc) 494 B
import { Character } from '../characters/Character'; import { IInputReceiver } from './IInputReceiver'; import { EntityType } from '../enums/EntityType'; export interface IControllable extends IInputReceiver { entityType: EntityType; position: THREE.Vector3; controllingCharacter: Character; triggerAction(actionName: string, value: boolean): void; resetControls(): void; allowSleep(value: boolean): void; onInputChange(): void; noDirectionPressed(): boolean; }