UNPKG

@megavr/ecsy-babylon

Version:

babylon.js ecsy binding and helpers

20 lines (19 loc) 581 B
import * as BABYLON from "@babylonjs/core"; import { Entity } from "ecsy"; import { SceneComponent, ObjectComponent } from "./types/index"; /** * @example * ``` * entity.addComponent(Camera, { pointerLock: true }); * ``` */ export declare class Camera implements SceneComponent, ObjectComponent<BABYLON.FreeCamera> { scene?: Entity; object: BABYLON.FreeCamera; /** * Lock pointer when using the camera. * @see https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API * @default false */ pointerLock?: boolean; }