Options
All
  • Public
  • Public/Protected
  • All
Menu

Manage the mouse wheel inputs to control a follow camera.

see

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

Hierarchy

  • FollowCameraMouseWheelInput

Implements

Index

Constructors

Properties

axisControlHeight: boolean

Moue wheel controls height. (Mouse wheel modifies camera.heightOffset value.)

axisControlRadius: boolean

Moue wheel controls zoom. (Mouse wheel modifies camera.radius value.)

axisControlRotation: boolean

Moue wheel controls angle. (Mouse wheel modifies camera.rotationOffset value.)

camera: FollowCamera

Defines the camera the input is attached to.

wheelDeltaPercentage: number

wheelDeltaPercentage will be used instead of wheelPrecision if different from 0. It defines the percentage of current camera.radius to use as delta when wheel is used.

wheelPrecision: number

Gets or Set the mouse wheel precision or how fast is the camera moves in relation to mouseWheel events.

Methods

  • attachControl(noPreventDefault?: boolean): 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