# Get the ray in a plane vs. plane collision

This topic is 3893 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## 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 on other sites

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]

1. 1
2. 2
3. 3
Rutin
18
4. 4
5. 5
JoeJ
13

• 14
• 10
• 24
• 9
• 57
• ### Forum Statistics

• Total Topics
632639
• Total Posts
3007612
• ### Who's Online (See full list)

There are no registered users currently online

×