FollowCameraKeyboardMoveInput

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

see

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

Hierarchy

  • FollowCameraKeyboardMoveInput

Implements

Index

Properties

camera

Find examples in Playground
camera: FollowCamera

Defines the camera the input is attached to.

heightSensibility

Find examples in Playground
heightSensibility: number

Defines the rate of change of heightOffset.

keysHeightOffsetDecr

Find examples in Playground
keysHeightOffsetDecr: number[]

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

keysHeightOffsetIncr

Find examples in Playground
keysHeightOffsetIncr: number[]

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

keysHeightOffsetModifierAlt

Find examples in Playground
keysHeightOffsetModifierAlt: boolean

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

keysHeightOffsetModifierCtrl

Find examples in Playground
keysHeightOffsetModifierCtrl: boolean

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

keysHeightOffsetModifierShift

Find examples in Playground
keysHeightOffsetModifierShift: boolean

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

keysRadiusDecr

Find examples in Playground
keysRadiusDecr: number[]

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

keysRadiusIncr

Find examples in Playground
keysRadiusIncr: number[]

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

keysRadiusModifierAlt

Find examples in Playground
keysRadiusModifierAlt: boolean

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

keysRadiusModifierCtrl

Find examples in Playground
keysRadiusModifierCtrl: boolean

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

keysRadiusModifierShift

Find examples in Playground
keysRadiusModifierShift: boolean

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

keysRotationOffsetDecr

Find examples in Playground
keysRotationOffsetDecr: number[]

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

keysRotationOffsetIncr

Find examples in Playground
keysRotationOffsetIncr: number[]

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

keysRotationOffsetModifierAlt

Find examples in Playground
keysRotationOffsetModifierAlt: boolean

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

keysRotationOffsetModifierCtrl

Find examples in Playground
keysRotationOffsetModifierCtrl: boolean

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

keysRotationOffsetModifierShift

Find examples in Playground
keysRotationOffsetModifierShift: boolean

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

radiusSensibility

Find examples in Playground
radiusSensibility: number

Defines the rate of change of radius.

rotationSensibility

Find examples in Playground
rotationSensibility: number

Defines the rate of change of rotationOffset.

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