Interface administrators, moderator
2,770
edits
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
== Code == | == Code == | ||
{{LuaCode|caption=Lua, Client-Side, GTAC versions 1.0.72 and newer:|1=function polarToCartesian(pos, rad, radius) | |||
--rad = rad + math.pi / 2 | --rad = rad + math.pi / 2 | ||
pos.x = pos.x + radius * math.cos(rad) | pos.x = pos.x + radius * math.cos(rad) |