@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
14 lines (13 loc) • 659 B
TypeScript
import { Camera, Object3D } from "three";
import type { ICameraController } from "./engine_types.js";
/** Get the camera controller for the given camera (if any)
*/
export declare function getCameraController(cam: Camera): ICameraController | null;
/** Set the camera controller for the given camera */
export declare function setCameraController(cam: Camera, cameraController: ICameraController, active: boolean): void;
/** @internal */
export declare function useForAutoFit(obj: Object3D): boolean;
/**
* Enable or disable autofitting for the given object
*/
export declare function setAutoFitEnabled(obj: Object3D, enabled: boolean): void;