converting degrees into unit vector for a function
Hello all!,
i have a script which can fire a ray out in a particular direction and print the collision point with a surface.
What i want to be able to do is fire out rays in a circle, say every 30 degrees in a particular axis. That means i need to convert the angle in space from degrees into a unit vector and then feed that into the function each time.
does anyone know how to do this? - specify degrees and convert into a unit vector?
thanks in advance,
Sam