Class FollowCameraPointersInput
Hierarchy
-
BaseCameraPointersInput
- FollowCameraPointersInput
Implements
Index
Properties
Methods
Properties
angular SensibilityXSearch playground for angularSensibilityX
Defines the pointer angular sensibility along the X axis or how fast is the camera rotating. A negative number will reverse the axis direction.
angular SensibilityYSearch playground for angularSensibilityY
Defines the pointer angular sensibility along the Y axis or how fast is the camera rotating. A negative number will reverse the axis direction.
axis Pinch Control HeightSearch playground for axisPinchControlHeight
Pinch controls height. (Pinch modifies camera.heightOffset value.)
axis Pinch Control RadiusSearch playground for axisPinchControlRadius
Pinch controls zoom. (Pinch modifies camera.radius value.)
axis Pinch Control RotationSearch playground for axisPinchControlRotation
Pinch controls angle. (Pinch modifies camera.rotationOffset value.)
axisXControl HeightSearch playground for axisXControlHeight
Pointer X axis controls height. (X axis modifies camera.heightOffset value.)
axisXControl RadiusSearch playground for axisXControlRadius
Pointer X axis controls zoom. (X axis modifies camera.radius value.)
axisXControl RotationSearch playground for axisXControlRotation
Pointer X axis controls angle. (X axis modifies camera.rotationOffset value.)
axisYControl HeightSearch playground for axisYControlHeight
Pointer Y axis controls height. (Y axis modifies camera.heightOffset value.)
axisYControl RadiusSearch playground for axisYControlRadius
Pointer Y axis controls zoom. (Y axis modifies camera.radius value.)
axisYControl RotationSearch playground for axisYControlRotation
Pointer Y axis controls angle. (Y axis modifies camera.rotationOffset value.)
buttonsSearch playground for buttons
Defines the buttons associated with the input to handle camera move.
cameraSearch playground for camera
Defines the camera the input is attached to.
pinch Delta PercentageSearch playground for pinchDeltaPercentage
pinchDeltaPercentage will be used instead of pinchPrecision if different from 0. It defines the percentage of current camera.radius to use as delta when pinch zoom is used.
pinch PrecisionSearch playground for pinchPrecision
Defines the pointer pinch precision or how fast is the camera zooming. A negative number will reverse the axis direction.
warning EnableSearch playground for warningEnable
Log error messages if basic misconfiguration has occurred.
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 pointers inputs to control an follow camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs