Class FollowCameraMouseWheelInput
Hierarchy
- FollowCameraMouseWheelInput
Implements
Index
Constructors
constructor
Returns FollowCameraMouseWheelInput
Properties
axis Control HeightSearch playground for axisControlHeight
Moue wheel controls height. (Mouse wheel modifies camera.heightOffset value.)
axis Control RadiusSearch playground for axisControlRadius
Moue wheel controls zoom. (Mouse wheel modifies camera.radius value.)
axis Control RotationSearch playground for axisControlRotation
Moue wheel controls angle. (Mouse wheel modifies camera.rotationOffset value.)
cameraSearch playground for camera
Defines the camera the input is attached to.
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 moves in relation to mouseWheel events.
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
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 a follow camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs