ControlsFactory class
Use this to create controls for your game, Currently supports the following types:
-
PlatformerControlsWrapper for a WASD + Space type of navigation
-
ThirdPersonCameraControlsWrapper for a third person camera movement
-
FirstPersonCameraControlsWrapper for a first person camera movement
-
DebugOrbitControlsWrapper for a debug orbit camera movement
-
FlyCameraControlsWrapper for a fly camera movement
Signature:
export declare class ControlsFactory
Methods
Method | Modifiers | Description |
---|---|---|
get(opts) | Factory method to create control. The controls returned depend on the type of controls you want to create. Currently supports the following types: "platformer", "thirdperson", "firstperson", "debugorbit", "fly". |