Constructor
Variables
enableKeyboardInput:Bool = true
If true, keyboard inputs wil be used.
Otherwise, you'll need to supply a direction vector via inputDir.
Note: If both keyboard and inputDir are active, the keyboard input will take priority. Useful for debugging.
enableControls:Bool = true
If disabled, all keyboard, inputDir and click+drag inputs will not be processed.
inputDir:Vector2 = new Vector2()
Custom input movement for the camera, set:
- x: -1...1 to strafe left and right
- y: -1...1 to move forwards or backwards