Skip to content

Instantly share code, notes, and snippets.

@MondayHopscotch
Created October 7, 2015 02:50
Show Gist options
  • Save MondayHopscotch/30b3dc4503a08c0fa84c to your computer and use it in GitHub Desktop.
Save MondayHopscotch/30b3dc4503a08c0fa84c to your computer and use it in GitHub Desktop.
Rectangle intersection = intersection(body1.rectangle, body2.rectangle);if (intersection != null) {
resolve();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment