Jump to content
  • Advertisement


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

Null and Void

Rect vs. Line collision

This topic is 6354 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 .

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!