Class: FloatController

FloatController

FloatController is a Component that allows moving an object (usually a camera) using mouse and keyboard (typical WASD controls) in all directions. It uses Tait-Bryan pitch/yaw (ignoring roll) angles.


new FloatController()

Properties:
Name Type Description
speed number

The speed at which to move.

shiftMultiplier number

A speed-up factor for when the shift key is pressed.

pitch number

The current orientation pitch (rotation about the X axis).

yaw number

The current orientation yaw (rotation about the Y axis).

friction number

The amount of friction that will cause the movement to stop when there's no input.

Author:
  • derschmale <http://www.derschmale.com>

Extends

Members


entity

The target entity.

Inherited From: