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/
Rect vs. Line collision
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement