math.ApproachAngle
From GMod Wiki
Revision as of 18:23, 28 November 2011 by (Voice) 鬼【悪魔Ⓛucifer】★ (Talk | contribs)
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.ApproachAngle]Math.ApproachAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Make the pitch of SomeAngle approach 90. |
|---|---|
| Used on | |
| Code | SomeAngle.p = math.ApproachAngle( SomeAngle.p, 90, 1 ) |
| Output | N/A |