Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ArcRotateCameraKeyboardMoveInput

Manage the keyboard inputs to control the movement of an arc rotate camera.

see

https://doc.babylonjs.com/how_to/customizing_camera_inputs

Hierarchy

  • ArcRotateCameraKeyboardMoveInput

Implements

Index

Properties

angularSpeedSearch playground for angularSpeed

angularSpeed: number

Rotation speed of the camera

cameraSearch playground for camera

Defines the camera the input is attached to.

keysDownSearch playground for keysDown

keysDown: number[]

Defines the list of key codes associated with the down action (decrease alpha)

keysLeftSearch playground for keysLeft

keysLeft: number[]

Defines the list of key codes associated with the left action (increase beta)

keysResetSearch playground for keysReset

keysReset: number[]

Defines the list of key codes associated with the reset action. Those keys reset the camera to its last stored state (with the method camera.storeState())

keysRightSearch playground for keysRight

keysRight: number[]

Defines the list of key codes associated with the right action (decrease beta)

keysUpSearch playground for keysUp

keysUp: number[]

Defines the list of key codes associated with the up action (increase alpha)

panningSensibilitySearch playground for panningSensibility

panningSensibility: number

Defines the panning sensibility of the inputs. (How fast is the camera panning)

useAltToZoomSearch playground for useAltToZoom

useAltToZoom: boolean

Defines whether maintaining the alt key down switch the movement mode from orientation to zoom.

zoomingSensibilitySearch playground for zoomingSensibility

zoomingSensibility: number

Defines the zooming sensibility of the inputs. (How fast is the camera zooming)

Methods

attachControlSearch playground for attachControl

  • attachControl(noPreventDefault?: boolean): void

checkInputsSearch playground for checkInputs

  • checkInputs(): void
  • Update the current camera state depending on the inputs that have been used this frame. This is a dynamically created lambda to avoid the performance penalty of looping for inputs in the render loop.

    Returns void

detachControlSearch playground for detachControl

  • detachControl(): void
  • Detach the current controls from the specified dom element.

    Returns void

getClassNameSearch playground for getClassName

  • getClassName(): string
  • Gets the class name of the current input.

    Returns string

    the class name

getSimpleNameSearch playground for getSimpleName

  • getSimpleName(): string
  • Get the friendly name associated with the input class.

    Returns string

    the input friendly name

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method