Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/paldepind/simple-physics
- Owner: paldepind
- Created: 2012-11-18T14:48:41.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-07T17:42:22.000Z (over 11 years ago)
- Last Synced: 2024-04-17T02:59:37.248Z (7 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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