Skip to content

havilash/fluid-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluid Simulation

A simple Rust-based fluid dynamics simulation using SDL2 for rendering and input. Interact with particles via the mouse and keyboard.

Setup

Prerequisites

  • Rust & Cargo: Install Rust
  • SDL2: Follow the instructions on the rust-sdl2 README for installing the SDL2 development libraries on Windows.

Usage

  1. Build & Run:
    Open a terminal in the project root (where Cargo.toml is located) and execute:
    cargo run

Controls

  • Mouse: Move to interact; left-click attracts, right-click repels.
  • Wheel: Adjust influence radius.
  • Space: Pause/resume.
  • R: Reset (Shift+R for alternate).
  • H: Toggle heatmap.
  • Right Arrow: Step one frame.
  • Escape: Quit.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages