Skip Navigation

Collision2Djs

Collision2Djs

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.

JavaScriptNodeJS

Preview

Collision2Djs screenshot 1 of 3
Collision2Djs screenshot 2 of 3
Collision2Djs screenshot 3 of 3
01/03

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.

Tech Stack

JavaScript
Node.js
NPM