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) 🚀
- Host: GitHub
- URL: https://github.com/jonpena/cirobb-wasm
- Owner: jonpena
- License: mit
- Created: 2022-11-21T13:55:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-04T09:30:50.000Z (over 1 year ago)
- Last Synced: 2025-02-28T20:45:52.422Z (over 1 year ago)
- Topics: 2d-collision, cirobb, game-physics, physics-engine, wasm, webassembly
- Language: C++
- Homepage: https://jonpena.github.io/Cirobb-wasm
- Size: 555 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```