API ReferenceGlobalsCameraControlFirstPerson

# Class: CameraControlFirstPerson

# Hierarchy

CameraControl

CameraControlFirstPerson

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new CameraControlFirstPerson(creator: string, inputManager: InputManager, initialCameraPosition?: Vector3, camera?: PerspectiveCamera): CameraControlFirstPerson

Overrides CameraControl.constructor

Defined in packages/planner-core/src/camera-control/camera-control-first-person.ts:45

Parameters:

Name Type
creator string
inputManager InputManager
initialCameraPosition? Vector3
camera? PerspectiveCamera

Returns: CameraControlFirstPerson

# Properties

# creator

creator: string

Implementation of Context.creator

Inherited from CameraControl.creator

Defined in packages/common-core/src/cameracontrol/camera-control.ts:77


# maxPolarAngle

maxPolarAngle: number = toRadiant(MAX_POLAR_ANGLE)

Defined in packages/planner-core/src/camera-control/camera-control-first-person.ts:45


# minPolarAngle

minPolarAngle: number = toRadiant(MIN_POLAR_ANGLE)

Defined in packages/planner-core/src/camera-control/camera-control-first-person.ts:44

# Methods

# addEventListener

addEventListener(eventName: number, callback: ListenerFunction‹any›, scope: any): void

Inherited from EventDispatcher.addEventListener

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:29

Parameters:

Name Type
eventName number
callback ListenerFunction‹any›
scope any

Returns: void


# addLightContainer

addLightContainer(container: Object3D): void

Inherited from CameraControl.addLightContainer

Defined in packages/common-core/src/cameracontrol/camera-control.ts:368

Parameters:

Name Type
container Object3D

Returns: void


# animateCamera

animateCamera(delta: number): boolean

Overrides CameraControl.animateCamera

Defined in packages/planner-core/src/camera-control/camera-control-first-person.ts:185

Parameters:

Name Type
delta number

Returns: boolean


# checkNearFarDistance

checkNearFarDistance(point: Vector3): void

Inherited from CameraControl.checkNearFarDistance

Defined in packages/common-core/src/cameracontrol/camera-control.ts:378

Parameters:

Name Type
point Vector3

Returns: void


# cleanUp

cleanUp(): void

Inherited from CameraControl.cleanUp

Defined in packages/common-core/src/cameracontrol/camera-control.ts:159

Returns: void


# disableEvents

disableEvents(): void

Inherited from EventDispatcher.disableEvents

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:67

Returns: void


# dispatchEvent

dispatchEvent(eventName: number, arg?: any): void

Inherited from EventDispatcher.dispatchEvent

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:33

Parameters:

Name Type
eventName number
arg? any

Returns: void


# enableEvents

enableEvents(): void

Inherited from EventDispatcher.enableEvents

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:63

Returns: void


# getCamera

getCamera(): Camera

Inherited from CameraControl.getCamera

Defined in packages/common-core/src/cameracontrol/camera-control.ts:136

Returns: Camera


# getInputPosition

getInputPosition(position: Position2): Vector3‹›

Inherited from CameraControl.getInputPosition

Defined in packages/common-core/src/cameracontrol/camera-control.ts:361

Parameters:

Name Type
position Position2

Returns: Vector3‹›


# getKernelZoomFactor

getKernelZoomFactor(): number

Overrides CameraControl.getKernelZoomFactor

Defined in packages/planner-core/src/camera-control/camera-control-first-person.ts:415

Returns: number


# getTargetPosition

getTargetPosition(): Vector3

Inherited from CameraControl.getTargetPosition

Defined in packages/common-core/src/cameracontrol/camera-control.ts:351

Returns: Vector3


# hasSavedState

hasSavedState(): boolean

Inherited from CameraControl.hasSavedState

Defined in packages/common-core/src/cameracontrol/camera-control.ts:335

Returns: boolean


# isLocked

isLocked(): boolean

Inherited from CameraControl.isLocked

Defined in packages/common-core/src/cameracontrol/camera-control.ts:347

Returns: boolean


# lock

lock(): void

Inherited from CameraControl.lock

Defined in packages/common-core/src/cameracontrol/camera-control.ts:339

Returns: void


# removeEventListener

removeEventListener(eventName: number, fun: ListenerFunction‹any›): void

Inherited from EventDispatcher.removeEventListener

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:49

Parameters:

Name Type
eventName number
fun ListenerFunction‹any›

Returns: void


# resetToState

resetToState(): void

Inherited from CameraControl.resetToState

Defined in packages/common-core/src/cameracontrol/camera-control.ts:315

Returns: void


# saveState

saveState(override: boolean): CameraParameter

Inherited from CameraControl.saveState

Defined in packages/common-core/src/cameracontrol/camera-control.ts:289

Parameters:

Name Type
override boolean

Returns: CameraParameter


# setBounds

setBounds(boundingBox: Box3): void

Inherited from CameraControl.setBounds

Defined in packages/common-core/src/cameracontrol/camera-control.ts:389

Parameters:

Name Type
boundingBox Box3

Returns: void


# setToState

setToState(start: CameraParameter, state: CameraParameter): void

Inherited from CameraControl.setToState

Defined in packages/common-core/src/cameracontrol/camera-control.ts:331

Parameters:

Name Type
start CameraParameter
state CameraParameter

Returns: void


# unlock

unlock(): void

Inherited from CameraControl.unlock

Defined in packages/common-core/src/cameracontrol/camera-control.ts:343

Returns: void


# updateCamera

updateCamera(): void

Overrides CameraControl.updateCamera

Defined in packages/planner-core/src/camera-control/camera-control-first-person.ts:301

Returns: void