math.ApproachAngle

From GMod Wiki

Revision as of 18:23, 28 November 2011 by (Voice) 鬼【悪魔Ⓛucifer】★ (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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