View source
class FoxFPSCamera
package foxlite.extras
extends FoxCamera › FoxObject › FoxBasic
extended by FoxOrbitCamera
Constructor
new(x:Float = 0, y:Float = 0, z:Float = 0, bgColor:FlxColor = 0x0, ortho:Bool = false, withLightData:Bool = true)
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