https://github.com/dinhanhx/particle-simulation
Simple particle simulation
https://github.com/dinhanhx/particle-simulation
cpp simulation ubuntu visual-studio windows-10
Last synced: 2 days ago
JSON representation
Simple particle simulation
- Host: GitHub
- URL: https://github.com/dinhanhx/particle-simulation
- Owner: dinhanhx
- Created: 2021-03-27T01:54:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T07:45:11.000Z (about 5 years ago)
- Last Synced: 2025-09-12T21:22:08.611Z (9 months ago)
- Topics: cpp, simulation, ubuntu, visual-studio, windows-10
- Language: C++
- Homepage:
- Size: 438 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Particle Simulation
## Windows
Clone this project
```bash
git clone https://github.com/dinhanhx/Particle-Simulation.git
```
Get all dependencies with [vcpkg](https://github.com/microsoft/vcpkg#quick-start-windows)
```
vcpkg install freeglut glew glm
```
Then open this project with Visual Studio, build with `Release x86`
## Ubuntu and Ubuntu based distros
Clone this project
```bash
git clone https://github.com/dinhanhx/Particle-Simulation.git
```
Ignore Visual Studio meta files.
Get all dependencies
```
sudo apt install ...
```
Compile and/or run
```
g++ ...
```
## Instruction
Press `f` key to lock/unlock the eye. By default, the eye locks on first water particle.
When the eye unlocks, you can use `up, down, left, right` to rotate the eye around.
Press `esc` to exit the program.