MainCamera class
Main camera used to render the scene, this is actually an instance of three.js PerspectiveCamera (opens in a new tab)
Signature:
export class MainCamera extends AbstractCamera
Extends: AbstractCamera
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
controls | FirstPersonCameraControlsWrapper | FlyCameraControlsWrapper | ThirdPersonCameraControlsWrapper | Returns the current camera controls, the type of the controls depends on the - if mode is | |
heightOffset | number | Returns vertical offset from the target object, this is used in combination with the mode property. | |
maxZoomOut | number | Represents the maximum distance from the target object, this is used in combination with the mode property. | |
mode | "firstperson" | "thirdperson" | ||
target | Object3D<import("three").Object3DEventMap> | ||
usePointerLock | boolean |