the-world-engine
Version:
three.js based, unity like game engine for browser
25 lines (24 loc) • 907 B
TypeScript
import type { Camera as ThreeCamera } from "three/src/Three";
import { Camera } from "./Camera";
/**
* duck-type camera that is compatible with object3d
*
* Use with raw three.js object
*/
export declare class DuckThreeCamera {
private readonly _transform;
private constructor();
private getDerivedProtoypeMembers;
private overrideMembers;
/**
* create duck type interface of camera component
*
* If this method is called without the camera's onEnable message being invoked error will be thrown
*
* This API is experimental because I'm currently looking for the most appropriate method
* @param camera camera component
* @param matrixAutoUpdate if true, the matrix will be updated automatically when the camera is updated
* @returns three.js camera object duck type interface
*/
static createInterface(camera: Camera): ThreeCamera;
}