Controlsfactory

ControlsFactory class

Use this to create controls for your game, Currently supports the following types:

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".

getControllerFor(obj)

Returns an existing controller instance for the given object, if one exists.