Garry's Mod Wiki

math.ApproachAngle

number math.ApproachAngle( number currentAngle, number targetAngle, number rate )

Description

Increments an angle towards another by specified rate.

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

Arguments

1 number currentAngle
The current angle to increase
2 number targetAngle
The angle to increase towards
3 number rate
The amount to approach the target angle by

Returns

1 number
Modified angle

Page Links


Special Pages


Wikis

?

Render Time: 89ms

DB GetPage 46
Generate Html 10
SaveChanges (1) 11
Render Body 0
Render Sidebar 20