Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FreeCameraVirtualJoystickInput

Manage the Virtual Joystick inputs to control the movement of a free camera.

see

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

Hierarchy

  • FreeCameraVirtualJoystickInput

Implements

Index

Properties

cameraSearch playground for camera

camera: FreeCamera

Defines the camera the input is attached to.

Methods

attachControlSearch playground for attachControl

  • attachControl(): void
  • Attach the input controls to a specific dom element to get the input from.

    Returns 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

getLeftJoystickSearch playground for getLeftJoystick

  • Gets the left stick of the virtual joystick.

    Returns VirtualJoystick

    The virtual Joystick

getRightJoystickSearch playground for getRightJoystick

  • Gets the right stick of the virtual joystick.

    Returns VirtualJoystick

    The virtual Joystick

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