Class FollowCameraKeyboardMoveInput
Hierarchy
- FollowCameraKeyboardMoveInput
Implements
Index
Properties
- camera
- height
Sensibility - keys
Height Offset Decr - keys
Height Offset Incr - keys
Height Offset Modifier Alt - keys
Height Offset Modifier Ctrl - keys
Height Offset Modifier Shift - keys
Radius Decr - keys
Radius Incr - keys
Radius Modifier Alt - keys
Radius Modifier Ctrl - keys
Radius Modifier Shift - keys
Rotation Offset Decr - keys
Rotation Offset Incr - keys
Rotation Offset Modifier Alt - keys
Rotation Offset Modifier Ctrl - keys
Rotation Offset Modifier Shift - radius
Sensibility - rotation
Sensibility
Methods
Properties
cameraSearch playground for camera
Defines the camera the input is attached to.
height SensibilitySearch playground for heightSensibility
Defines the rate of change of heightOffset.
keys Height Offset DecrSearch playground for keysHeightOffsetDecr
Defines the list of key codes associated with the down action (decrease heightOffset)
keys Height Offset IncrSearch playground for keysHeightOffsetIncr
Defines the list of key codes associated with the up action (increase heightOffset)
keys Height Offset Modifier AltSearch playground for keysHeightOffsetModifierAlt
Defines whether the Alt modifier key is required to move up/down (alter heightOffset)
keys Height Offset Modifier CtrlSearch playground for keysHeightOffsetModifierCtrl
Defines whether the Ctrl modifier key is required to move up/down (alter heightOffset)
keys Height Offset Modifier ShiftSearch playground for keysHeightOffsetModifierShift
Defines whether the Shift modifier key is required to move up/down (alter heightOffset)
keys Radius DecrSearch playground for keysRadiusDecr
Defines the list of key codes associated with the zoom-out action (increase radius)
keys Radius IncrSearch playground for keysRadiusIncr
Defines the list of key codes associated with the zoom-in action (decrease radius)
keys Radius Modifier AltSearch playground for keysRadiusModifierAlt
Defines whether the Alt modifier key is required to zoom in/out (alter radius value)
keys Radius Modifier CtrlSearch playground for keysRadiusModifierCtrl
Defines whether the Ctrl modifier key is required to zoom in/out (alter radius value)
keys Radius Modifier ShiftSearch playground for keysRadiusModifierShift
Defines whether the Shift modifier key is required to zoom in/out (alter radius value)
keys Rotation Offset DecrSearch playground for keysRotationOffsetDecr
Defines the list of key codes associated with the right action (decrease rotationOffset)
keys Rotation Offset IncrSearch playground for keysRotationOffsetIncr
Defines the list of key codes associated with the left action (increase rotationOffset)
keys Rotation Offset Modifier AltSearch playground for keysRotationOffsetModifierAlt
Defines whether the Alt modifier key is required to move left/right (alter rotationOffset)
keys Rotation Offset Modifier CtrlSearch playground for keysRotationOffsetModifierCtrl
Defines whether the Ctrl modifier key is required to move left/right (alter rotationOffset)
keys Rotation Offset Modifier ShiftSearch playground for keysRotationOffsetModifierShift
Defines whether the Shift modifier key is required to move left/right (alter rotationOffset)
radius SensibilitySearch playground for radiusSensibility
Defines the rate of change of radius.
rotation SensibilitySearch playground for rotationSensibility
Defines the rate of change of rotationOffset.
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 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 keyboard inputs to control the movement of a follow camera.
https://doc.babylonjs.com/how_to/customizing_camera_inputs