math.ApproachAngle

From Garry's Mod
Jump to: navigation, search
 math.ApproachAngle( )

Contents

Description

Increments an angle towards another by specified rate.

NOTE

This function is for numbers representing angles (0-360), NOT Angle objects!

Arguments

number currentAngle

The current angle to increase

Arguments

number targetAngle

The angle to increase towards

Arguments

number rate

The amount to approach the target angle by

Returns

number

Modified angle
Personal tools
Navigation