hello everyone,
I'm trying to get origins around an origin to create a beam between center and the end of the circle
and I'm not really good at math lol.
for example origin would be {0.0,0.0,0.0} which would be the center, and the distance would be 150.0
so I want to make it start from the top of it, and make it go in circular motion by 360°
any snippet for it?
probably by using floatsin() and floatcos()? I have no idea how to use them
thanks in advance!
Figured it out! here's a lil snippet if anyone needs it:
PHP Code:
stock get_circular_origin(Float:angle, Float:origin[3], Float:radius,Float:COrigin[3])
{
COrigin[0] = radius * floatcos(angle,degrees);
COrigin[1] = origin[1]
COrigin[2] = radius * floatsin(angle,degrees);
}
__________________