Need the 2D equation for calculateing the collision with stright lines at differant angles
Posted on 2004-10-06
I Need the 2D equation for calculateing the collision with stright lines at differant angles.(makeing a game in shockwave)
I will explain in a diagram.....
Ok do you see X and Y, imagine there is a line joining them,
I need an equation or equations to calculate if a point hits the line.
Idealy if this equation would only work on the line width height and roataion it wolud be cool , however I would be very thankful just for the equation.
Also if you could throw in somemore colision detection for more roatated shapes like roatated rectangles, that would be good.