Options
All
  • Public
  • Public/Protected
  • All
Menu

Animation that listens on drags and touchmovements to rotate around the x or y axis.

Hierarchy

  • TouchRotor

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    Returns TouchRotor

Properties

angle

angle: number

Angle of the rotation.

axis

Axis to rotate around. X or Y axis only!

running

running: boolean

The running state.

Methods

getMatrix

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

    Returns Matrix4

toogle

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

    Returns void

update

  • update(delta: number): void
  • Updates the effect with the specified timedelta.

    Does nothing only implemented for interface reasons!

    Parameters

    • delta: number

      Time since the last frame.

    Returns void

updateAngle

  • updateAngle(delta: Vector3): void
  • Updates the angle by the given delta.

    Parameters

    • delta: Vector3

      Delta in the last mousepositions.

    Returns void

Generated using TypeDoc