Skip to content


utils.math.polar3DToWorld3D(center, polar, azimuth, radius)
This function works as a sphere, in which you can define the position of an object of 3 dimensions according to their respective parameters.


Argument Data Type Optional Default Value Explanation
center coords No - Coordinates as center
polar int No - Horizontal angle
azimuth int No - Vertical angle
radius int No - Sphere radius


local utils = M("utils")


local coords = vector3(93.59624, -1129.801, 28.33222) -- Coordinates representing the center'prop_barrel_03d', coords)

local polarCoords = utils.math.polar3DToWorld3D(coords, 0, 90, 2)'prop_barrel_03d', polarCoords)

Improve this documentation