Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FreeCameraMouseWheelInput

Manage the mouse wheel inputs to control a free camera.

see

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

Hierarchy

Implements

Index

Properties

cameraSearch playground for camera

camera: FreeCamera

Defines the camera the input is attached to.

onChangedObservableSearch playground for onChangedObservable

onChangedObservable: Observable<{ wheelDeltaX: number; wheelDeltaY: number; wheelDeltaZ: number }>

Observable for when a mouse wheel move event occurs.

wheelPrecisionXSearch playground for wheelPrecisionX

wheelPrecisionX: number

How fast is the camera moves in relation to X axis mouseWheel events. Use negative value to reverse direction.

wheelPrecisionYSearch playground for wheelPrecisionY

wheelPrecisionY: number

How fast is the camera moves in relation to Y axis mouseWheel events. Use negative value to reverse direction.

wheelPrecisionZSearch playground for wheelPrecisionZ

wheelPrecisionZ: number

How fast is the camera moves in relation to Z axis mouseWheel events. Use negative value to reverse direction.

Accessors

wheelXMoveRelative

  • Get the configured movement axis (relative to camera's orientation) the mouse wheel's X axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which movement axis (relative to camera's orientation) the mouse wheel's X axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

wheelXMoveScene

  • Get the configured movement axis (relative to the scene) the mouse wheel's X axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which movement axis (relative to the scene) the mouse wheel's X axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

wheelXRotateRelative

  • Get the configured rotation axis (relative to camera's orientation) the mouse wheel's X axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which rotation axis (relative to camera's orientation) the mouse wheel's X axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

wheelYMoveRelative

  • Get the configured movement axis (relative to camera's orientation) the mouse wheel's Y axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which movement axis (relative to camera's orientation) the mouse wheel's Y axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

wheelYMoveScene

  • Get the configured movement axis (relative to the scene) the mouse wheel's Y axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which movement axis (relative to the scene) the mouse wheel's Y axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

wheelYRotateRelative

  • Get the configured rotation axis (relative to camera's orientation) the mouse wheel's Y axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which rotation axis (relative to camera's orientation) the mouse wheel's Y axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

wheelZMoveRelative

  • Get the configured movement axis (relative to camera's orientation) the mouse wheel's Z axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which movement axis (relative to camera's orientation) the mouse wheel's Z axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

wheelZMoveScene

  • Get the configured movement axis (relative to the scene) the mouse wheel's Z axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which movement axis (relative to the scene) the mouse wheel's Z axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

wheelZRotateRelative

  • Get the configured rotation axis (relative to camera's orientation) the mouse wheel's Z axis controls.

    Returns Nullable<Coordinate>

    The configured axis or null if none.

  • Set which rotation axis (relative to camera's orientation) the mouse wheel's Z axis controls.

    Parameters

    Returns any

    The configured axis or null if none.

Methods

attachControlSearch playground for attachControl

  • attachControl(noPreventDefault?: boolean): void

checkInputsSearch playground for checkInputs

  • checkInputs(): void

detachControlSearch playground for detachControl

  • detachControl(): void

getClassNameSearch playground for getClassName

  • getClassName(): string

getSimpleNameSearch playground for getSimpleName

  • getSimpleName(): string

Legend

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