Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FreeCameraKeyboardMoveInput

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

see

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

Hierarchy

  • FreeCameraKeyboardMoveInput

Implements

Index

Properties

cameraSearch playground for camera

camera: FreeCamera

Defines the camera the input is attached to.

keysDownSearch playground for keysDown

keysDown: number[]

Gets or Set the list of keyboard keys used to control the backward move of the camera.

keysDownwardSearch playground for keysDownward

keysDownward: number[]

Gets or Set the list of keyboard keys used to control the downward move of the camera.

keysLeftSearch playground for keysLeft

keysLeft: number[]

Gets or Set the list of keyboard keys used to control the left strafe move of the camera.

keysRightSearch playground for keysRight

keysRight: number[]

Gets or Set the list of keyboard keys used to control the right strafe move of the camera.

keysUpSearch playground for keysUp

keysUp: number[]

Gets or Set the list of keyboard keys used to control the forward move of the camera.

keysUpwardSearch playground for keysUpward

keysUpward: number[]

Gets or Set the list of keyboard keys used to control the upward move of the camera.

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 intput.

    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
  • Static method