This topic is now archived and is closed to further replies.

Null and Void

Rect vs. Line collision

Recommended Posts

If anyone has a Rectangle to Line collision (i.e. if the line goes through the rectangle) function (for C/C++) already written I''d be glad to see it . I know (technically) how to write one, but it isn''t all that fast =P. I''m looking for an example with a decent speed, I don''t really need the equations, but any more input is good. Thanks, and please note what directions the axis are in .

Share this post

Link to post
Share on other sites