math.ApproachAngle

From GMod Wiki

Jump to: navigation, search
Function
Syntax math.ApproachAngle( Float cur, Float target, Integer inc )
Where is this used?
Description:
Increment angle a using number c until it reaches angle b.
Returns: Float
Part of Library: Math
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Math.ApproachAngle]Math.ApproachAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMake the pitch of SomeAngle approach 90.
Used onNewerShared.png
Code
SomeAngle.p = math.ApproachAngle( SomeAngle.p, 90, 1 ) 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox