An open API service indexing awesome lists of open source software.

https://github.com/jonpena/cirobb-wasm

Cirobb Engine 🌟 con WebAssembly (WASM) 🚀
https://github.com/jonpena/cirobb-wasm

2d-collision cirobb game-physics physics-engine wasm webassembly

Last synced: 12 months ago
JSON representation

Cirobb Engine 🌟 con WebAssembly (WASM) 🚀

Awesome Lists containing this project

README

          

# Cirobb Engine WASM

Cirobb is a 2D physics engine written in C++ and compiled to WebAssembly, designed to simulate rigid bodies with collision detection and resolution.

## Features

- 2D Physics Engine supporting:

- Dynamic and static rigid bodies
- Geometric shapes: Circles and OBB (Oriented Bounding Box)
- Discrete Collision Detection (DCD)
- Impulse-based collision resolution
- Friction and restitution
- Configurable gravity
- Position correction (Baumgarte and NGS)

- WebAssembly compilation for web browser usage
- OpenGL/WebGL rendering
- Interactive controls for object creation and manipulation

## Installation

### Requirements

- Emscripten SDK
- CMake
- C++11 compatible compiler
- Python 3.10

### Building

To compile the project to WebAssembly:

```bash
./build.sh
```