Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FollowCameraKeyboardMoveInput

Manage the keyboard inputs to control the movement of a follow camera.

see

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

Hierarchy

  • FollowCameraKeyboardMoveInput

Implements

Index

Properties

cameraSearch playground for camera

camera: FollowCamera

Defines the camera the input is attached to.

heightSensibilitySearch playground for heightSensibility

heightSensibility: number

Defines the rate of change of heightOffset.

keysHeightOffsetDecrSearch playground for keysHeightOffsetDecr

keysHeightOffsetDecr: number[]

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

keysHeightOffsetIncrSearch playground for keysHeightOffsetIncr

keysHeightOffsetIncr: number[]

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

keysHeightOffsetModifierAltSearch playground for keysHeightOffsetModifierAlt

keysHeightOffsetModifierAlt: boolean

Defines whether the Alt modifier key is required to move up/down (alter heightOffset)

keysHeightOffsetModifierCtrlSearch playground for keysHeightOffsetModifierCtrl

keysHeightOffsetModifierCtrl: boolean

Defines whether the Ctrl modifier key is required to move up/down (alter heightOffset)

keysHeightOffsetModifierShiftSearch playground for keysHeightOffsetModifierShift

keysHeightOffsetModifierShift: boolean

Defines whether the Shift modifier key is required to move up/down (alter heightOffset)

keysRadiusDecrSearch playground for keysRadiusDecr

keysRadiusDecr: number[]

Defines the list of key codes associated with the zoom-out action (increase radius)

keysRadiusIncrSearch playground for keysRadiusIncr

keysRadiusIncr: number[]

Defines the list of key codes associated with the zoom-in action (decrease radius)

keysRadiusModifierAltSearch playground for keysRadiusModifierAlt

keysRadiusModifierAlt: boolean

Defines whether the Alt modifier key is required to zoom in/out (alter radius value)

keysRadiusModifierCtrlSearch playground for keysRadiusModifierCtrl

keysRadiusModifierCtrl: boolean

Defines whether the Ctrl modifier key is required to zoom in/out (alter radius value)

keysRadiusModifierShiftSearch playground for keysRadiusModifierShift

keysRadiusModifierShift: boolean

Defines whether the Shift modifier key is required to zoom in/out (alter radius value)

keysRotationOffsetDecrSearch playground for keysRotationOffsetDecr

keysRotationOffsetDecr: number[]

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

keysRotationOffsetIncrSearch playground for keysRotationOffsetIncr

keysRotationOffsetIncr: number[]

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

keysRotationOffsetModifierAltSearch playground for keysRotationOffsetModifierAlt

keysRotationOffsetModifierAlt: boolean

Defines whether the Alt modifier key is required to move left/right (alter rotationOffset)

keysRotationOffsetModifierCtrlSearch playground for keysRotationOffsetModifierCtrl

keysRotationOffsetModifierCtrl: boolean

Defines whether the Ctrl modifier key is required to move left/right (alter rotationOffset)

keysRotationOffsetModifierShiftSearch playground for keysRotationOffsetModifierShift

keysRotationOffsetModifierShift: boolean

Defines whether the Shift modifier key is required to move left/right (alter rotationOffset)

radiusSensibilitySearch playground for radiusSensibility

radiusSensibility: number

Defines the rate of change of radius.

rotationSensibilitySearch playground for rotationSensibility

rotationSensibility: number

Defines the rate of change of rotationOffset.

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