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 |
---|---|---|---|
FirstPersonCameraControlsWrapper | ThirdPersonCameraControlsWrapper | FlyCameraControlsWrapper |
Returns the current camera controls, the type of the controls depends on the
| ||
boolean | |||
boolean | |||
number |
Returns vertical offset from the target object, this is used in combination with the | ||
number |
Represents the maximum distance from the target object, this is used in combination with the | ||
"thirdperson" | "firstperson" | |||
Object3D<import("three").Object3DEventMap> | |||
boolean |
Methods
Method |
Modifiers |
Description |
---|---|---|