Options
All
  • Public
  • Public/Protected
  • All
Menu

DriverAnimation that drives on to specified axes with the supplied keys.

Hierarchy

  • Driver

Implements

Index

Constructors

constructor

  • Parameters

    Returns Driver

Properties

forwardDir

forwardDir: Vector3 | Vector4

Direction of the forward and backwards axis.

Private keypresses

keypresses: string[]

Holds the pressed keys.

keys

keys: string[]

The keys used to steer the driver.

pos

pos: Vector4

Current position of the driver.

rightDir

rightDir: Vector3 | Vector4

Direction of the right and left axis.

running

running: boolean

Toggle if the animation is running.

speed

speed: number

The speed of the Driver.

Methods

Private backward

  • backward(): void
  • Adds backward to the inputqueue.

    Returns void

Private forward

  • forward(): void
  • Adds forward to the inputqueue.

    Returns void

getMatrix

  • Returns the translationmatrix with the current position.

    Returns Matrix4

Private left

  • left(): void
  • Adds left to the inputqueue.

    Returns void

Private right

  • right(): void
  • Adds right to the inputqueue.

    Returns void

toogle

  • toogle(): void
  • Toggles the running state of the animation.

    Returns void

update

  • update(delta: number): void
  • Updates the effect with the specified timedelta. Uses the inputqueue and clears it afterwards.

    Parameters

    • delta: number

      Time since the last frame.

    Returns void

Generated using TypeDoc