Archived

This topic is now archived and is closed to further replies.

Karl G

Angle -> Vector

Recommended Posts

Karl G    170
Well I know what you're talking about but I don't know how to implement it/what to do. Could you explain?

Edit: Corrected some grammar

[edited by - Karl G on September 1, 2003 6:01:21 PM]

Share this post


Link to post
Share on other sites
ZealousElixir    256
x = sin(theta)*cos(phi)
y = sin(theta)*sin(phi)
z = cos(theta)

Where theta is rotation about Z (in the interval -pi to pi) and phi is rotation about X (in the interval 0 to 2pi).

This should result in a unit vector pointing in the desired direction.

Later,
ZE.

Share this post


Link to post
Share on other sites