Beer glass scene creation
This course contains a little bit of everything with modeling, UVing, texturing and dynamics in Maya, as well as compositing multilayered EXR's in Photoshop.
# 1 17-10-2014 , 03:00 PM
Registered User
Join Date: Feb 2004
Posts: 5

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

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off