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
-
for a WASD + Space type of navigation
Signature:
export declare class ControlsFactory
Methods
Method |
Modifiers |
Description |
---|---|---|
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". | ||
Returns an existing controller instance for the given object, if one exists. |