Class ArcRotateCameraMouseWheelInput
Hierarchy
- ArcRotateCameraMouseWheelInput
Implements
Index
Properties
cameraSearch playground for camera
Defines the camera the input is attached to.
custom Compute Delta From Mouse WheelSearch playground for customComputeDeltaFromMouseWheel
If set, this function will be used to set the radius delta that will be added to the current camera radius
wheel Delta PercentageSearch playground for wheelDeltaPercentage
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.
wheel PrecisionSearch playground for wheelPrecision
Gets or Set the mouse wheel precision or how fast is the camera zooming.
zoom ToMouse LocationSearch playground for zoomToMouseLocation
Gets or Set the boolean value that controls whether or not the mouse wheel zooms to the location of the mouse pointer or not. The default is false.
Methods
attach ControlSearch playground for attachControl
-
Attach the input controls to a specific dom element to get the input from.
Parameters
-
Optional noPreventDefault: boolean
Defines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Returns void
-
check InputsSearch playground for checkInputs
-
Update the current camera state depending on the inputs that have been used this frame. This is a dynamically created lambda to avoid the performance penalty of looping for inputs in the render loop.
Returns void
detach ControlSearch playground for detachControl
-
Detach the current controls from the specified dom element.
Returns void
get Class NameSearch playground for getClassName
-
Gets the class name of the current input.
Returns string
the class name
get Simple NameSearch playground for getSimpleName
-
Get the friendly name associated with the input class.
Returns string
the input friendly name
Manage the mouse wheel inputs to control an arc rotate camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs