🎉 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!

Vectors, Planes & Intersections

Started by
2 comments, last by alistair b 23 years, 11 months ago
What''s the simplest way to figure out if two vectors intersect in front of a (variable) plane. i guess i could use the intersection point and see if its a positive or negative multiple of the normal to the plane? if this isn''t right, thanks in advance for better solutions alistair
Advertisement
Yep, that''s just right.

Can be optimized, but no one ever bothers...



========
Smidge
www.smidge-tech.co.uk
========
--Mr Smidge
Try to look at the public available source code for the Graphic Gem books. They have some very fast code for 2 line intersection and lots of other intersection tests. maybe they have exactly what you want...

Tim

--------------------------
www.gamedev.net/hosted/glvelocity
glvelocity.gamedev.net
www.glvelocity.com
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
ok, i did what i said and it worked (maybe should have tried it first!)
i found http://nate.scuzzy.net/normals/normals.html really helpful, and managed to rearrange the algebra to get a really easy expression.

Thanks for the help anyway,

alistair

This topic is closed to new replies.

Advertisement