Options
All
  • Public
  • Public/Protected
  • All
Menu

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

see

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

Hierarchy

  • FreeCameraTouchInput

Implements

Index

Constructors

Properties

allowMouse: boolean

Define if mouse events can be treated as touch events

camera: FreeCamera

Defines the camera the input is attached to.

singleFingerRotate: boolean

Swap touch actions so that one touch is used for rotation and multiple for movement

touchAngularSensibility: number

Defines the touch sensibility for rotation. The lower the faster.

touchMoveSensibility: number

Defines the touch sensibility for move. The lower the faster.

Methods

  • attachControl(noPreventDefault?: boolean): void
  • 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(): void
  • Detach the current controls from the specified dom element.

    Returns void

  • getClassName(): string
  • Gets the class name of the current input.

    Returns string

    the class name

  • getSimpleName(): string
  • Get the friendly name associated with the input class.

    Returns string

    the input friendly name

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme