ArcRotateCameraKeyboardMoveInput

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

see

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

Hierarchy

  • ArcRotateCameraKeyboardMoveInput

Implements

Index

Properties

angularSpeed

Find examples in Playground
angularSpeed: number

Rotation speed of the camera

camera

Find examples in Playground

Defines the camera the input is attached to.

keysDown

Find examples in Playground
keysDown: number[]

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

keysLeft

Find examples in Playground
keysLeft: number[]

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

keysReset

Find examples in Playground
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())

keysRight

Find examples in Playground
keysRight: number[]

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

keysUp

Find examples in Playground
keysUp: number[]

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

panningSensibility

Find examples in Playground
panningSensibility: number

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

useAltToZoom

Find examples in Playground
useAltToZoom: boolean

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

zoomingSensibility

Find examples in Playground
zoomingSensibility: number

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

Methods

attachControl

Find examples in Playground
  • attachControl(element: HTMLElement, noPreventDefault?: boolean): void

checkInputs

Find examples in Playground
  • 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

detachControl

Find examples in Playground
  • detachControl(element: Nullable<HTMLElement>): void
  • Detach the current controls from the specified dom element.

    Parameters

    • element: Nullable<HTMLElement>

      Defines the element to stop listening the inputs from

    Returns void

getClassName

Find examples in Playground
  • getClassName(): string

getSimpleName

Find examples in Playground
  • getSimpleName(): string
  • Get the friendly name associated with the input class.

    Returns string

    the input friendly name

Generated using TypeDoc