ScriptingExamples/VehicleBounceAndFixer: Difference between revisions

no edit summary
No edit summary
 
No edit summary
 
Line 5: Line 5:


== Code ==
== Code ==
'''Lua, Client-Side, GTAC versions 1.0.72 and newer:'''
{{LuaCode|caption=Lua, Client-Side, GTAC versions 1.0.72 and newer:|1=function polarToCartesian(pos, rad, radius)
{{LuaCode|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)
2,770

edits