Class FreeCameraKeyboardMoveInput
Implements
Index
Constructors
constructor
-
Returns FreeCameraKeyboardMoveInput
Properties
camera
Defines the camera the input is attached to.
keys Down
Gets or Set the list of keyboard keys used to control the backward move of the camera.
keys Downward
Gets or Set the list of keyboard keys used to control the downward move of the camera.
keys Left
Gets or Set the list of keyboard keys used to control the left strafe move of the camera.
keys Right
Gets or Set the list of keyboard keys used to control the right strafe move of the camera.
keys Rotate Down
Gets or Set the list of keyboard keys used to control the down rotation move of the camera.
keys Rotate Left
Gets or Set the list of keyboard keys used to control the left rotation move of the camera.
keys Rotate Right
Gets or Set the list of keyboard keys used to control the right rotation move of the camera.
keys Rotate Up
Gets or Set the list of keyboard keys used to control the up rotation move of the camera.
keys Up
Gets or Set the list of keyboard keys used to control the forward move of the camera.
keys Upward
Gets or Set the list of keyboard keys used to control the upward move of the camera.
rotation Speed
Defines the pointer angular sensibility along the X and Y axis or how fast is the camera rotating.
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 free camera.
See
https://doc.babylonjs.com/features/featuresDeepDive/cameras/customizingCameraInputs