Jump to content
  • Advertisement

Archived

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

ECKILLER

Vectors

This topic is 6580 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

A 3D Vector is the direction and magnitude. You need to restate your question with more information on what you are trying to do.

Try this site for more information on vectors:

Vectors

Share this post


Link to post
Share on other sites
Do you mean the angles/sphere coords?

Because
x = r*cos(u)*sin(v)
y = r*sin(u)*sin(v)
z = r*cos(v)

you get

r = sqrt(x^2 + y^2 + z^2)

u = arctan(y/x)

v = arctan(z/sqrt(x^2+y^2))

Visit our homepage: www.rarebyte.de.st

GA

Share this post


Link to post
Share on other sites
Thanks ga, i thumbed through a calculus book to see the differant methods to describe its direction and yes spherical coords is the way i wanted.



ECKILLER

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!