Advertisement

Rect vs. Line collision

Started by January 28, 2001 11:48 PM
-1 comments, last by Null and Void 24 years ago
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/

This topic is closed to new replies.

Advertisement