Jump to content
  • Advertisement

Archived

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

Morgan

Stupid distance formula question...

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

I wrote a custom file format and loader a while back and decided to add collision detection crap to my engine, but I can''t remember how to do a distance formula in 3D! I was messing around with it a bit, but it''s been quite a while since I took a math course, can anybody jog my memory? I should need to find the distance between the points by x and y, then do I do it for y and z and combine the two some way, or do I use the x and y distance and then do some trig using that distance as the base of the triangle? Sorry, a bit tired, by x, y, and z, I am referring to the axis (for example, a normal distance equation solves the distance between two points on the x and y axis). Morgan

Share this post


Link to post
Share on other sites
Advertisement
I knew I was a little too tired to be trying to figure it out right now! He he he! I do feel pretty stupid right now, so thanks! I''ll just go kick myself now

Morgan

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!