Class FollowCameraKeyboardMoveInput
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Returns FollowCameraKeyboardMoveInput
Properties
camera
Defines the camera the input is attached to.
height Sensibility
Defines the rate of change of heightOffset.
keys Height Offset Decr
Defines the list of key codes associated with the down action (decrease heightOffset)
keys Height Offset Incr
Defines the list of key codes associated with the up action (increase heightOffset)
keys Height Offset Modifier Alt
Defines whether the Alt modifier key is required to move up/down (alter heightOffset)
keys Height Offset Modifier Ctrl
Defines whether the Ctrl modifier key is required to move up/down (alter heightOffset)
keys Height Offset Modifier Shift
Defines whether the Shift modifier key is required to move up/down (alter heightOffset)
keys Radius Decr
Defines the list of key codes associated with the zoom-out action (increase radius)
keys Radius Incr
Defines the list of key codes associated with the zoom-in action (decrease radius)
keys Radius Modifier Alt
Defines whether the Alt modifier key is required to zoom in/out (alter radius value)
keys Radius Modifier Ctrl
Defines whether the Ctrl modifier key is required to zoom in/out (alter radius value)
keys Radius Modifier Shift
Defines whether the Shift modifier key is required to zoom in/out (alter radius value)
keys Rotation Offset Decr
Defines the list of key codes associated with the right action (decrease rotationOffset)
keys Rotation Offset Incr
Defines the list of key codes associated with the left action (increase rotationOffset)
keys Rotation Offset Modifier Alt
Defines whether the Alt modifier key is required to move left/right (alter rotationOffset)
keys Rotation Offset Modifier Ctrl
Defines whether the Ctrl modifier key is required to move left/right (alter rotationOffset)
keys Rotation Offset Modifier Shift
Defines whether the Shift modifier key is required to move left/right (alter rotationOffset)
radius Sensibility
Defines the rate of change of radius.
rotation Sensibility
Defines the rate of change of rotationOffset.
Methods
attach Control
-
Attach the input controls to a specific dom element to get the input from.
Parameters
OptionalnoPreventDefault: booleanDefines whether event caught by the controls should call preventdefault() (https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
Returns void
check Inputs
-
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 Control
-
Detach the current controls from the specified dom element.
Returns void
get Class Name
-
Gets the class name of the current input.
Returns string
the class name
get Simple Name
-
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.
See
https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs