ArcRotateCamera

NodeCameraArcRotateCamera

Description

class ArcRotateCamera extends TargetCamera

Constructor

new ArcRotateCamera(name, alpha, beta, radius, target, scene)

Parameters

Name Type Description
name string
alpha number
beta number
radius number
target Vector3

Members

alpha : number

beta : number

radius : number

target : Vector3

inertialAlphaOffset : number

inertialBetaOffset : number

inertialRadiusOffset : number

lowerAlphaLimit : Nullable<number>

upperAlphaLimit : Nullable<number>

lowerBetaLimit : number

upperBetaLimit : number

lowerRadiusLimit : Nullable<number>

upperRadiusLimit : Nullable<number>

inertialPanningX : number

inertialPanningY : number

pinchToPanMaxDistance : number

panningDistanceLimit : Nullable<number>

panningOriginTarget : Vector3

panningInertia : number

angularSensibilityX : number

angularSensibilityY : number

pinchPrecision : number

pinchDeltaPercentage : number

panningSensibility : number

keysUp : number[]

keysDown : number[]

keysLeft : number[]

keysRight : number[]

wheelPrecision : number

wheelDeltaPercentage : number

zoomOnFactor : number

targetScreenOffset : Vector2

allowUpsideDown : boolean

inputs : ArcRotateCameraInputsManager

panningAxis : Vector3

bouncingBehavior : Nullable<BouncingBehavior>

useBouncingBehavior : boolean

framingBehavior : Nullable<FramingBehavior>

useFramingBehavior : boolean

autoRotationBehavior : Nullable<AutoRotationBehavior>

useAutoRotationBehavior : boolean

onMeshTargetChangedObservable : Observable<Nullable<AbstractMesh>>

onCollide : (collidedMesh: AbstractMesh) => void

Parameters

Name Type Description
collidedMesh AbstractMesh

checkCollisions : boolean

collisionRadius : Vector3

doNotUpdateMaxZ : undefined

Methods

storeState() Camera

attachControl(element, noPreventDefault, useCtrlForPanning, panningMouseButton) void

Parameters

Name Type Description
element HTMLElement
optional noPreventDefault boolean
optional useCtrlForPanning boolean

detachControl(element) void

Parameters

Name Type Description
element HTMLElement

rebuildAnglesAndRadius() void

setPosition(position) void

Parameters

Name Type Description
position Vector3

setTarget(target, Vector3, toBoundingCenter, allowSamePosition) void

Parameters

Name Type Description
target AbstractMesh or Vector3
optional toBoundingCenter boolean
optional allowSamePosition boolean

zoomOn(meshes, doNotUpdateMaxZ) void

Parameters

Name Type Description
optional meshes AbstractMesh[]
optional doNotUpdateMaxZ boolean

focusOn(meshesOrMinMaxVectorAndDistance) (meshesOrMinMaxVectorAndDistance)

Parameters

Name Type Description
meshesOrMinMaxVectorAndDistance AbstractMesh[]