G.WorldToLocal

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.WorldToLocal]G.WorldToLocal [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox