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
on Button DownSearch playground for onButtonDown
-
Called each time a new POINTERDOWN event occurs. Ie, for each button press. Override this method to provide functionality.
Parameters
-
evt: IPointerEvent
Returns void
-
on Button UpSearch playground for onButtonUp
-
Called each time a new POINTERUP event occurs. Ie, for each button release. Override this method to provide functionality.
Parameters
-
evt: IPointerEvent
Returns void
-
on Context MenuSearch playground for onContextMenu
-
Called on JS contextmenu event. Override this method to provide functionality.
Parameters
-
evt: PointerEvent
Returns void
-
on Double TapSearch playground for onDoubleTap
-
Called on pointer POINTERDOUBLETAP event. Override this method to provide functionality on POINTERDOUBLETAP event.
Parameters
-
type: string
Returns void
-
on Lost FocusSearch playground for onLostFocus
-
Called when window becomes inactive. Override this method to provide functionality.
Returns void
on Multi TouchSearch playground for onMultiTouch
-
Parameters
-
pointA: Nullable<PointerTouch>
-
pointB: Nullable<PointerTouch>
-
previousPinchSquaredDistance: number
-
pinchSquaredDistance: number
-
previousMultiTouchPanPosition: Nullable<PointerTouch>
-
multiTouchPanPosition: Nullable<PointerTouch>
Returns void
-
on TouchSearch playground for onTouch
-
Parameters
-
pointA: Nullable<PointerTouch>
-
offsetX: number
-
offsetY: number
Returns void
-
Manage the pointers inputs to control an follow camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs