Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pfrazee/gsim
A little physics simulation which uses time-dilation to create attraction
https://github.com/pfrazee/gsim
Last synced: 2 months ago
JSON representation
A little physics simulation which uses time-dilation to create attraction
- Host: GitHub
- URL: https://github.com/pfrazee/gsim
- Owner: pfrazee
- Created: 2016-10-28T04:34:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T16:07:08.000Z (almost 7 years ago)
- Last Synced: 2024-10-17T17:36:46.919Z (2 months ago)
- Language: JavaScript
- Homepage: https://pfrazee.github.io/gsim/
- Size: 47.9 KB
- Stars: 18
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gsim
### [Try the simulation](https://pfrazee.github.io/gsim/)
## What is this?
This is a little physics simulation which uses time-dilation to create attraction. The interesting part of the simulation is, it's able to create attraction by "bending" time but not space; the internal forces of the orbiting body create a net pull towards the point where time moves slowest.
## Background
A while ago I read a paper about how to handle networked physics with many users, and they suggested using time dilation (like Eve Online) but in one continuous space, so that crowded regions would slow down time in order to handle the load better. I was curious what time dilation would do to your physics engine -- because a 'body' could literally have two or more different tick rates at once -- so I rigged up two point masses connected by a spring-force and applied time dilation. What this ended up doing is modulating the spring-force in such a way that there was a net force on the point-masses that 'pulled' them to the time-dilation center. I thought it was pretty interesting that a mechanism used to handle the propagation of information could end up creating something that behaves like gravity.