Jump to content
  • Advertisement

Archived

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

nick5454

Create a direction from 2 3D points

This topic is 5108 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

Okay so I''m being redundant but I just have one last question. Lets say I have 2 #d points and I want to build a direction vector. Do I subtract 2 from 1 then normailize the vector to get the direction? Nick

Share this post


Link to post
Share on other sites
Advertisement
Lets have 2 points, a and b.
To get direction from a to b you just: normalise(b-a).
Depending on what you want the direction vector for you may be able to skip the normalisation part.

[edited by - SoulSpectre on May 31, 2004 9:20:19 PM]

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!