Class ArcRotateCameraKeyboardMoveInput
Hierarchy
- ArcRotateCameraKeyboardMoveInput
Implements
Index
Properties
angular SpeedSearch playground for angularSpeed
Rotation speed of the camera
cameraSearch playground for camera
Defines the camera the input is attached to.
keys DownSearch playground for keysDown
Defines the list of key codes associated with the down action (decrease alpha)
keys LeftSearch playground for keysLeft
Defines the list of key codes associated with the left action (increase beta)
keys ResetSearch playground for keysReset
Defines the list of key codes associated with the reset action. Those keys reset the camera to its last stored state (with the method camera.storeState())
keys RightSearch playground for keysRight
Defines the list of key codes associated with the right action (decrease beta)
keys UpSearch playground for keysUp
Defines the list of key codes associated with the up action (increase alpha)
panning SensibilitySearch playground for panningSensibility
Defines the panning sensibility of the inputs. (How fast is the camera panning)
use Alt ToZoomSearch playground for useAltToZoom
Defines whether maintaining the alt key down switch the movement mode from orientation to zoom.
zooming SensibilitySearch playground for zoomingSensibility
Defines the zooming sensibility of the inputs. (How fast is the camera zooming)
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 intput.
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 keyboard inputs to control the movement of an arc rotate camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs