BaseCameraMouseWheelInput

Base class for mouse wheel input.. See FollowCameraMouseWheelInput in src/Cameras/Inputs/freeCameraMouseWheelInput.ts for example usage.

Hierarchy

Implements

Index

Properties

Abstract camera

Find examples in Playground
camera: Camera

Defines the camera the input is attached to.

onChangedObservable

Find examples in Playground
onChangedObservable: Observable<object>

Observable for when a mouse wheel move event occurs.

wheelPrecisionX

Find examples in Playground
wheelPrecisionX: number

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

wheelPrecisionY

Find examples in Playground
wheelPrecisionY: number

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

wheelPrecisionZ

Find examples in Playground
wheelPrecisionZ: number

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

Methods

attachControl

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

checkInputs

Find examples in Playground
  • checkInputs(): void
  • Called for each rendered frame.

    Returns void

detachControl

Find examples in Playground
  • detachControl(): 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