Collision2 Djs

Collision2djs is a JavaScript library for efficient 2D collision detection. It supports common geometric shapes and offers both broad-phase and narrow-phase collision detection, making it ideal for building physics simulations, games, or interactive visualizations.
Preview



Key Features
Collision Detection
Accurate 2D collision detection between common geometric shapes like circles, rectangles, and polygons.
Intersection Calculations
Get precise intersection points and coordinates between colliding shapes.
High Performance
Optimized algorithms for reliable and fast collision checks in real-time applications.
Multiple Shape Types
Supports circles, rectangles, polygons, and other common 2D geometric primitives.
Clean Documentation
Open-source with comprehensive documentation and usage examples for every API method.
Easy Integration
User-friendly API that integrates smoothly into games, physics simulations, and interactive visualizations.