Archived

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

Rect vs. Line collision

This topic is 6161 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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 .
http://www.gdarchive.net/druidgames/

Share this post


Link to post
Share on other sites