Options
All
  • Public
  • Public/Protected
  • All
Menu

Rotoranimation that rotates around the x,y or z axis.

Hierarchy

  • Rotor

Implements

Index

Constructors

constructor

  • new Rotor(axis: Vector3 | Vector4, speed: number, start?: boolean, ccw?: boolean, toogleKey?: string): Rotor
  • Parameters

    • axis: Vector3 | Vector4
    • speed: number
    • Default value start: boolean = true
    • Default value ccw: boolean = true
    • Optional toogleKey: string

    Returns Rotor

Properties

angle

angle: number

Current angle of the rotation.

axis

Axis of the rotation.

ccw

ccw: boolean

Rotation direction.

running

running: boolean

Running state of the animation.

speed

speed: number

Speed of the animation.

toogleKey

toogleKey: string

Key to toggle the rotationdirection.

Methods

getMatrix

  • Returns the rotationmatrix with the current angle around the specified axis.

    Returns Matrix4

setSpeed

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

    Parameters

    • speed: number

      New speed of the animation.

    Returns void

toogle

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

    Returns void

toogleRotationDirection

  • toogleRotationDirection(): void
  • Toggles the rotationdirection.

    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