Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/paldepind/simple-physics

A simple physics simulator written in JavaScript capable of simulating Elasto Mania like physics.
https://github.com/paldepind/simple-physics

Last synced: 15 days ago
JSON representation

A simple physics simulator written in JavaScript capable of simulating Elasto Mania like physics.

Awesome Lists containing this project

README

        

# Simple physics simulator

This is a simple physics simulator written in JavaScript. It is based on Verlet integration and simple vector geometry.
It is capable of handling collisions between circles and lines, simple constraint solving with distance between points
(somewhat simulating springs, physically incorrect though).

The simulator is heavily based on the paper Advanced Character Physics by Thomas Jakobsen.

The physic simulator is used to simulate a simple bike. With a bit more polish is would work fine for an Elasto Mania/X-Moto like game.

RequireJS is utilized for organizing the code into flexible modules.

##Stuff to-do:
* Implement bezier curves instead of just straight lines
* The physics still needs some tweaking.
* Make the viewport follow the bike
* Add ability to rotate the bike and smooth acceleration