Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FollowCameraPointersInput

Manage the pointers inputs to control an follow camera.

see

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

Hierarchy

Implements

Index

Properties

angularSensibilityXSearch playground for angularSensibilityX

angularSensibilityX: number

Defines the pointer angular sensibility along the X axis or how fast is the camera rotating. A negative number will reverse the axis direction.

angularSensibilityYSearch playground for angularSensibilityY

angularSensibilityY: number

Defines the pointer angular sensibility along the Y axis or how fast is the camera rotating. A negative number will reverse the axis direction.

axisPinchControlHeightSearch playground for axisPinchControlHeight

axisPinchControlHeight: boolean

Pinch controls height. (Pinch modifies camera.heightOffset value.)

axisPinchControlRadiusSearch playground for axisPinchControlRadius

axisPinchControlRadius: boolean

Pinch controls zoom. (Pinch modifies camera.radius value.)

axisPinchControlRotationSearch playground for axisPinchControlRotation

axisPinchControlRotation: boolean

Pinch controls angle. (Pinch modifies camera.rotationOffset value.)

axisXControlHeightSearch playground for axisXControlHeight

axisXControlHeight: boolean

Pointer X axis controls height. (X axis modifies camera.heightOffset value.)

axisXControlRadiusSearch playground for axisXControlRadius

axisXControlRadius: boolean

Pointer X axis controls zoom. (X axis modifies camera.radius value.)

axisXControlRotationSearch playground for axisXControlRotation

axisXControlRotation: boolean

Pointer X axis controls angle. (X axis modifies camera.rotationOffset value.)

axisYControlHeightSearch playground for axisYControlHeight

axisYControlHeight: boolean

Pointer Y axis controls height. (Y axis modifies camera.heightOffset value.)

axisYControlRadiusSearch playground for axisYControlRadius

axisYControlRadius: boolean

Pointer Y axis controls zoom. (Y axis modifies camera.radius value.)

axisYControlRotationSearch playground for axisYControlRotation

axisYControlRotation: boolean

Pointer Y axis controls angle. (Y axis modifies camera.rotationOffset value.)

buttonsSearch playground for buttons

buttons: number[]

Defines the buttons associated with the input to handle camera move.

cameraSearch playground for camera

camera: FollowCamera

Defines the camera the input is attached to.

pinchDeltaPercentageSearch playground for pinchDeltaPercentage

pinchDeltaPercentage: number

pinchDeltaPercentage will be used instead of pinchPrecision if different from 0. It defines the percentage of current camera.radius to use as delta when pinch zoom is used.

pinchPrecisionSearch playground for pinchPrecision

pinchPrecision: number

Defines the pointer pinch precision or how fast is the camera zooming. A negative number will reverse the axis direction.

warningEnableSearch playground for warningEnable

warningEnable: boolean

Log error messages if basic misconfiguration has occurred.

Methods

attachControlSearch playground for attachControl

  • attachControl(noPreventDefault?: boolean): void

detachControlSearch playground for detachControl

  • detachControl(): void

getClassNameSearch playground for getClassName

  • getClassName(): string

getSimpleNameSearch playground for getSimpleName

  • getSimpleName(): string

onButtonDownSearch playground for onButtonDown

  • Called each time a new POINTERDOWN event occurs. Ie, for each button press. Override this method to provide functionality.

    Parameters

    Returns void

onButtonUpSearch playground for onButtonUp

  • Called each time a new POINTERUP event occurs. Ie, for each button release. Override this method to provide functionality.

    Parameters

    Returns void

onContextMenuSearch playground for onContextMenu

  • onContextMenu(evt: PointerEvent): void
  • Called on JS contextmenu event. Override this method to provide functionality.

    Parameters

    • evt: PointerEvent

    Returns void

onDoubleTapSearch playground for onDoubleTap

  • onDoubleTap(type: string): void
  • Called on pointer POINTERDOUBLETAP event. Override this method to provide functionality on POINTERDOUBLETAP event.

    Parameters

    • type: string

    Returns void

onLostFocusSearch playground for onLostFocus

  • onLostFocus(): void
  • Called when window becomes inactive. Override this method to provide functionality.

    Returns void

onMultiTouchSearch playground for onMultiTouch

onTouchSearch playground for onTouch

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method