Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevglass/propel-js
Simple serialisable deterministic 2d physics engine
https://github.com/kevglass/propel-js
game-development gamedev physics physics-2d physics-engine
Last synced: 2 days ago
JSON representation
Simple serialisable deterministic 2d physics engine
- Host: GitHub
- URL: https://github.com/kevglass/propel-js
- Owner: kevglass
- License: mit
- Created: 2024-07-29T07:48:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-04T13:59:46.000Z (24 days ago)
- Last Synced: 2024-12-18T08:11:30.200Z (10 days ago)
- Topics: game-development, gamedev, physics, physics-2d, physics-engine
- Language: TypeScript
- Homepage: https://kevglass.github.io/propel-js/examples/
- Size: 802 KB
- Stars: 43
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# propel-js - Tiny Open Physics Library.
A free, open source, teeny weeny physics library for typescript. Mostly just some utilities for making games.
[Documentation](https://kevglass.github.io/propel-js/docs)
[Examples](https://kevglass.github.io/propel-js/examples/)
## Install
```
npm install propel-jsor
yarn add propel-js
```## Why?
When working with networked physics games it's useful to be able to seralize state to send across the wire. Other physics
engines do this by providing a seralizer but doing this regularly can be expensive. propel-js aims to keep physics state
in serializable structures with functions/resolvers outside of the data.## Features
* Rectangles
* Circles
* Joints
* Compound Bodies
* SensorsMore added as time permits.
## Rune Compatible
This was built to support physics in networked games on the [Rune Platform](https://developers.rune.ai)
## Credits
* This project started as a port and clean up of: https://github.com/xem/mini2Dphysics/tree/gh-pages
* Bjarke Felbo also contributed to the original source: https://github.com/bfelbo