From 6b052dfa37b37a672fec1f35f3ee7f7e3684460f Mon Sep 17 00:00:00 2001 From: Ben Cragg Date: Wed, 10 Apr 2019 11:34:31 +0100 Subject: [PATCH] Intial commit --- community/line-collisions/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 community/line-collisions/README.md diff --git a/community/line-collisions/README.md b/community/line-collisions/README.md new file mode 100644 index 0000000..248351c --- /dev/null +++ b/community/line-collisions/README.md @@ -0,0 +1,10 @@ +# Line Collisions +Line collisions is a basic example of how to detect line collisions with a rectangle. + +## Instructions +You can set the rectangle position using a left-click of the mouse. + +You can set the line position with two right-clicks of the mouse; the first right-click will set the beginning of the +line the second will set the end of the line. + +Any intersection points where the rectangle and line intersection will appear as red dots.