Solved

# Need the 2D equation for calculateing the collision with stright lines at differant angles

Posted on 2004-10-06

Hello Experts,

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.....

X

Y

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.

k thanks