Merge pull request #7 from Pascal-So/patch-1

add keyboard shortcuts to readme
master
Jean Tampon 2021-04-26 00:36:16 -07:00 committed by GitHub
commit afdf9a51e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,15 @@
'Anti-collision' system, as demonstrated in this [YouTube video](https://www.youtube.com/watch?v=SqpIcsN0FTI)
![Picture of various sized balls missing one another](https://user-images.githubusercontent.com/159109/115645659-bc4cd480-a2ee-11eb-885e-ab72cb75205d.png)
## Usage
The following keyboard shortcuts are available
* <kbd>E</kbd> toggle v-sync. V-sync limits the number of frames per second, so disabling it speeds up the simulation.
* <kbd>A</kbd> toggle the visibility of the traces.
* <kbd>space</kbd> toggle slow-motion.
* <kbd>R</kbd> reset the view.
* <kbd>esc</kbd> close the application.
You can zoom into the simulation by scrolling, and move around by dragging with the mouse.