@writegames.com/game-math
    Preparing search index...

    Function approachAngleDeg

    • Approaches a target angle by an amount without exceeding the target.

      Parameters

      • from: number

        Input angle (degrees)

      • to: number

        Target angle (degrees)

      • deg: number

        Amount (degrees) to approach

      Returns number