@vrspace/babylonjs
Version:
vrspace.org babylonjs client
31 lines (30 loc) • 808 B
TypeScript
/**
* MiniMap sets up a camera looking from above at current avatar position,
* takes a screenshot every now and then, and displays it.
*/
export class MiniMap {
constructor(scene: any);
/** Delay in ms, defines frame rate, defaults to 25fps (20ms)*/
delay: number;
/** Movement resolution to track, defaut 0.5 */
resolution: number;
/** Height above the avatar use to capture the scene */
height: number;
scene: any;
engine: any;
camera: any;
surface: any;
pointerDragBehavior: any;
center: any;
top: any;
timestamp: number;
capturing: boolean;
lastPos: any;
movementHandler: () => void;
windowResized: () => void;
setPosition(): void;
shot(): void;
hasMoved(): boolean;
movement(): void;
dispose(): void;
}