CLASSES
TagsA - Z

ArcRotateCamera

NodeCameraArcRotateCamera

Description

class ArcRotateCamera extends TargetCamera

Constructor

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

Create a new ArcRotateCamera. ArcRotateCamera is a camera that rotates around a given pivot. It can be controlled with the mouse or touch events (and it also requires hand.js to work) A tutorial about ArcRotateCamera can be found here : https://doc.babylonjs.com/tutorials/Cameras

Parameters

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

Members

alpha : number

Alpha of the ArcRotateCamera (Rotation angle around Y axis)

beta : number

Beta of the ArcRotateCamera (Rotation angle around X axis)

radius : number

Radius of the ArcRotateCamera

target : Vector3

Target of the ArcRotateCamera

inertialAlphaOffset : number

Inertial alpha offset

inertialBetaOffset : number

Inertial beta offset

inertialRadiusOffset : number

Inertial radius offset

lowerAlphaLimit : any

Lower alpha limit

upperAlphaLimit : any

Upper alpha limit

lowerBetaLimit : number

Lower beta limit

upperBetaLimit : number

Upper beta limit

lowerRadiusLimit : any

Lower radius limit

upperRadiusLimit : any

Upper radius limit

inertialPanningX : number

inertialPanningY : number

panningInertia : number

angularSensibilityX : number

angularSensibilityY : number

pinchPrecision : number

PinchPrecision

panningSensibility : number

keysUp : number[]

Key to control the camera UP

keysDown : number[]

Key to control the camera DOWN

keysLeft : number[]

Key to control the camera LEFT

keysRight : number[]

Key to control the camera RIGHT

wheelPrecision : number

Wheel precision

zoomOnFactor : number

Zoom on factor

targetScreenOffset : Vector2

allowUpsideDown : boolean

inputs : ArcRotateCameraInputsManager

panningAxis : Vector3

onCollide : AbstractMesh) => void

OnCollide

checkCollisions : boolean

CheckCollisions

collisionRadius : Vector3

CollisionsRadius

Methods

attachControl(element, noPreventDefault, useCtrlForPanning, panningMouseButton) void

Parameters

Name Type Description
element HTMLElement Element to detach from the control
optional noPreventDefault boolean @param noPreventDefault
optional useCtrlForPanning boolean

detachControl(element) void

Detach camera control and display from the specified canvas

Parameters

Name Type Description
element HTMLElement Element to detach from the control

rebuildAnglesAndRadius() void

setPosition(position) void

Set the position of the ArcRotateCamera

Parameters

Name Type Description
position Vector3 The new position of the ArcRotateCamera

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[] Meshes to zoom on
optional doNotUpdateMaxZ boolean

focusOn(meshesOrMinMaxVectorAndDistance, doNotUpdateMaxZ) void

Parameters

Name Type Description
meshesOrMinMaxVectorAndDistance any @param meshesOrMinMaxVectorAndDistance
optional doNotUpdateMaxZ boolean

createRigCamera(name, cameraIndex) Camera

@override

Override Camera.createRigCamera

Parameters

Name Type Description
name string
cameraIndex number

dispose() void

getClassName() string