🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Stupid distance formula question...
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement