G.WorldToLocal
From GMod Wiki
Revision as of 00:41, 5 November 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
WorldToLocal( Vector worldPos, Angle worldAngle, Vector originPos, Angle originAngle ) Where is this used? |
Description: | |
Converts the world position (the standard type of position, where (0,0,0) is the center of the map) to a 'local position', with respect to a given origin. A local position is a vector offset from (0,0,0), where (0,0,0) is considered to be the origin's center. | |
Returns: | Vector , Angle |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.WorldToLocal]G.WorldToLocal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |