3D line segment-plane collision detection
I am working on a project in which I need to find the intersection point (if it exists) between a line segment and a plane. I can easily do this with 2 dimensions, but 3D is a little harder, and I haven't much 3D math.
Basically, what I have is a tile-based world that is managed as cubes, so all of the planes are either going to be flat to the front on the X/Y axes, or sideways along the Z/Y or Z/X axes.
I think the first thing I need is to be able to find the equation of a 3D line using only two 3D points, but I can't figure out how to do that!
Thanks in advance,
-Zippy Dee