Describes all objects that can be moved around, rotated and scaled in the scene

interface Controls {
    dispose(): void;
    getActiveCamera(): Camera;
    getCameras(): Camera[];
    getTransform(): TransformNode;
    shouldLockPointer(): boolean;
    update(deltaSeconds: number): Vector3;
}

Hierarchy (View Summary)

Implemented by

Methods

  • Makes the controller listen to all its inputs and returns the displacement to apply to the player

    Parameters

    • deltaSeconds: number

      the time between 2 frames

    Returns Vector3