If your walls are not vertical or horiztonal you need to
a) Find the vector describing the line.
b) Find the normal vector
c) Nomalise it (and reverse it I think).
d) Find the dot product
e) Calculate the final velocity.
a) Find the vector describing the line.
b) Find the normal vector
c) Nomalise it (and reverse it I think).
d) Find the dot product
e) Calculate the final velocity.