Options
All
  • Public
  • Public/Protected
  • All
Menu

Animation the goes forwards and backwards on a specified axis.

Hierarchy

  • Jumper

Implements

Index

Constructors

constructor

  • Parameters

    • axis: Vector3 | Vector4
    • speed: number
    • length: number
    • Default value start: boolean = true

    Returns Jumper

Properties

axis

The axis to move along.

length

length: number

The length of the "jump".

moved

moved: number

The length moved on the axis.

pos

pos: Vector3

Current position.

reversed

reversed: boolean

Flag if its moving backwards.

running

running: boolean

The running state.

speed

speed: number

The speed of the effect.

Methods

getMatrix

  • Returns the translationmatrix with the current position.

    Returns Matrix4

setSpeed

  • setSpeed(speed: number): void
  • Sets the speed of the Animation.

    Parameters

    • speed: number

      Speed to set.

    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.

    Parameters

    • delta: number

      Time since the last frame.

    Returns void

Generated using TypeDoc