How would I get the angle from a normalized vector?
Example
Vector(0.6232123,0.223174,0)
Vector/Angle
For some reason that doesn't appear to be giving me the right angle when I use it like this
local rand = Vector(math.Rand(0,1),math.Rand(0,1),0)
local ent = ents.Create("sky_box_plane")
ent:SetPos(Vector(0,0,1000)
ent:SetAngles( rand:Angle() )
ent:Spawn()
ent.Direction = rand
Sorry, you need to Log In to post a reply to this thread.