• Advertisement
Sign in to follow this  

Get the ray in a plane vs. plane collision

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

Hello. I got two planes defined by a vector3 and the distance from origo. If the planes collide they will collide in an infinite ray (e.g line). I can get the direction of the line by vector multiply both the vectors, but I still need one point on the "line". I wonder if anyone can explain how to get a single point on this line?. Best regards Friskuu.

Share this post


Link to post
Share on other sites
Advertisement
Link

Sorry for the short reply... I'm at work.

Edit: What you want, mathematically speaking, is a point that is at distance 0 from both planes. The number is infinite (it's the line), but by defining one coordinate (e.g., x = 0) you can solve it.

Re-edit:

Never mind my previous edit. I was in a hurry and didn't think things through.

Three intersecting planes define a point. A plane can be defined by a vector and a scalar (distance). You already have three vectors and two scalars. Define the third scalar to what suits you best.

Convert them to their implicit form (ax + ... = 0) and solve the system.

[Edited by - Silver Phoenix on January 28, 2008 2:40:19 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement