Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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-js

or

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
* Sensors

More 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