Class ArcRotateCameraPointersInput
Hierarchy
- BaseCameraPointersInput
- ArcRotateCameraPointersInput
Index
Constructors
Properties
Methods
Constructors
constructor
Returns ArcRotateCameraPointersInput
Properties
angular SensibilityXSearch playground for angularSensibilityX
Defines the pointer angular sensibility along the X axis or how fast is the camera rotating.
angular SensibilityYSearch playground for angularSensibilityY
Defines the pointer angular sensibility along the Y axis or how fast is the camera rotating.
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.
multi Touch Pan And ZoomSearch playground for multiTouchPanAndZoom
Defines whether panning is enabled for both pan (2 fingers swipe) and zoom (pinch) through multitouch.
multi Touch PanningSearch playground for multiTouchPanning
Defines whether panning (2 fingers swipe) is enabled through multitouch.
panning SensibilitySearch playground for panningSensibility
Defines the pointer panning sensibility or how fast is the camera moving.
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 InwardsSearch playground for pinchInwards
Revers pinch action direction.
pinch PrecisionSearch playground for pinchPrecision
Defines the pointer pinch precision or how fast is the camera zooming.
pinch ZoomSearch playground for pinchZoom
Defines whether zoom (2 fingers pinch) is enabled through multitouch
use Natural Pinch ZoomSearch playground for useNaturalPinchZoom
When useNaturalPinchZoom is true, multi touch zoom will zoom in such that any object in the plane at the camera's target point will scale perfectly with finger motion. Overrides pinchDeltaPercentage and pinchPrecision.
Static Minimum Radius For PinchSearch playground for MinimumRadiusForPinch
The minimum radius used for pinch, to avoid radius lock at 0
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.
Parameters
evt: IPointerEvent
Returns void
on Button UpSearch playground for onButtonUp
Called each time a new POINTERUP event occurs. Ie, for each button release.
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.
Returns void
on Lost FocusSearch playground for onLostFocus
Called when window becomes inactive.
Returns void
on Multi TouchSearch playground for onMultiTouch
Called on pointer POINTERMOVE event if multiple touches are active.
Parameters
pointA: Nullable<PointerTouch>
pointB: Nullable<PointerTouch>
previousPinchSquaredDistance: number
pinchSquaredDistance: number
previousMultiTouchPanPosition: Nullable<PointerTouch>
multiTouchPanPosition: Nullable<PointerTouch>
Returns void
on TouchSearch playground for onTouch
Called on pointer POINTERMOVE event if only a single touch is active.
Parameters
point: Nullable<PointerTouch>
offsetX: number
offsetY: number
Returns void
Manage the pointers inputs to control an arc rotate camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs