Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FreeCameraTouchInput

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

constructor

Properties

allowMouseSearch playground for allowMouse

allowMouse: boolean

Define if mouse events can be treated as touch events

cameraSearch playground for camera

camera: FreeCamera

Defines the camera the input is attached to.

singleFingerRotateSearch playground for singleFingerRotate

singleFingerRotate: boolean

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

touchAngularSensibilitySearch playground for touchAngularSensibility

touchAngularSensibility: number

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

touchMoveSensibilitySearch playground for touchMoveSensibility

touchMoveSensibility: number

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

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