API

Class BaseCameraMouseWheelInputAbstract

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

Hierarchy (View Summary)

Implements

Index
camera: Camera

Defines the camera the input is attached to.

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

Observable for when a mouse wheel move event occurs.

wheelPrecisionX: number = 3.0

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

wheelPrecisionY: number = 3.0

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

wheelPrecisionZ: number = 3.0

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