FollowCameraMouseWheelInput

Manage the mouse wheel inputs to control a follow camera.

see

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

Hierarchy

  • FollowCameraMouseWheelInput

Implements

Index

Properties

axisControlHeight

Find examples in Playground
axisControlHeight: boolean

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

axisControlRadius

Find examples in Playground
axisControlRadius: boolean

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

axisControlRotation

Find examples in Playground
axisControlRotation: boolean

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

camera

Find examples in Playground
camera: FollowCamera

Defines the camera the input is attached to.

wheelDeltaPercentage

Find examples in Playground
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

Find examples in Playground
wheelPrecision: number

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

Methods

attachControl

Find examples in Playground
  • attachControl(element: HTMLElement, noPreventDefault?: boolean): void

detachControl

Find examples in Playground
  • detachControl(element: Nullable<HTMLElement>): void
  • Detach the current controls from the specified dom element.

    Parameters

    • element: Nullable<HTMLElement>

      Defines the element to stop listening the inputs from

    Returns void

getClassName

Find examples in Playground
  • getClassName(): string

getSimpleName

Find examples in Playground
  • getSimpleName(): string
  • Get the friendly name associated with the input class.

    Returns string

    the input friendly name

Generated using TypeDoc