Explanation of 2D collisions for points, lines, rectangles, and circles. Overview of each collision type along with examples and code. Explanations are general in nature so that they can be implemented in any game engine or programming language. Demonstration of Javascript web application that calculates collisions between the four types of objects, along with review of code functionality.
Links and Notes
- Collision detection Javascript demo – https://levidsmith.com/utilities/collision2d
- Collision detection source code – https://github.com/levidsmith/collision2d
- Podcast theme music – Ride by Pocketmaster