Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 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