Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffrey-xiao/gravity-collision-simulator
Simple simulator that accounts for gravity and collisions. The location you click will be where a ball is spawned, the distance you drag it will determine the magnitude of its velocity, the direction you drag it will determine the direction, and finally the length of time you hold it will determine its size/mass.
https://github.com/jeffrey-xiao/gravity-collision-simulator
Last synced: about 2 months ago
JSON representation
Simple simulator that accounts for gravity and collisions. The location you click will be where a ball is spawned, the distance you drag it will determine the magnitude of its velocity, the direction you drag it will determine the direction, and finally the length of time you hold it will determine its size/mass.
- Host: GitHub
- URL: https://github.com/jeffrey-xiao/gravity-collision-simulator
- Owner: jeffrey-xiao
- Created: 2015-08-03T23:21:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-28T15:17:30.000Z (about 9 years ago)
- Last Synced: 2023-02-26T04:33:53.740Z (almost 2 years ago)
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gravity-Collision-Simulator
A simple implementation of a two dimensional collision simulator using ```javax.swing```. The location you click will be where a ball is spawned, the distance you drag it will determine the magnitude of its velocity, the direction you drag it will determine the direction, and finally the length of time you hold it will determine its size/mass.You can adjust the coefficient of resistitution, frames per second, the acceleration of gravity, and the path size.
The physics equations used afre those you would typically find in a twelfth grade physics class.
Finally, balls can be created within other balls and the program will adjust so that there is no overlap.