Here is my problem, I have a 3D pong game that we will simplify as this : each pad is represented by a rectangle. This rectangle is parallel to every axis, its Z axis position is constant, and it's otherwise defined by four values that we could call x1, y1, x2, y2 that make up the rectangle.
The ball is defined as a singular point, evolving in all 3 axis. What I want to find out is when the line defined by the position of the ball at time t and t+1 crosses the rectangle, and where on the rectangle.
I tried googling some for collision detection for quite a while but most of the time I fall on obscure stuff that is obviously not about my particular problem.
The ball is defined as a singular point, evolving in all 3 axis. What I want to find out is when the line defined by the position of the ball at time t and t+1 crosses the rectangle, and where on the rectangle.
I tried googling some for collision detection for quite a while but most of the time I fall on obscure stuff that is obviously not about my particular problem.