phaser - v4.0.0-rc.4
    Preparing search index...
    • Rotates currentAngle towards targetAngle, taking the shortest rotation distance. The lerp argument is the amount to rotate by in this call.

      Parameters

      • currentAngle: number

        The current angle, in radians.

      • targetAngle: number

        The target angle to rotate to, in radians.

      • Optionallerp: number

        The lerp value to add to the current angle. Default 0.05.

      Returns number