Skip to content

About

Interactive particle simulation written in Rust.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interaction Particule

Requirement

  • Install rust here.

  • Install necessary lib for gtk4 :

# For Ubuntu 22.04+
$ sudo apt install libgtk-4-dev
# For Fedora
$ sudo dnf install gtk4-devel

Project

Interactive particle simulation written in Rust using gtk4 for rendering.

  • What it is: A small simulation where colored particles (red/blue/green/yellow) interact according to configurable pairwise rules. Each rule controls the strength (g) and effective distance (d) of the interaction between two color groups.
  • Why it's useful: Handy for experimenting with emergent behavior, flocking, attraction/repulsion systems and tuning simple physics-like interactions.

You can configure interaction rules in rules.json (project root). The project includes a sample rules.json and a demo video showing the simulation in action.

Example rules.json:

[
	{"group1":"red","group2":"red","g":-1.0,"d":8.0},
	{"group1":"red","group2":"blue","g":1.0,"d":10.0}
]

Demo video

demo animation

Quick start

# install dependencies and run
cargo run

About

Interactive particle simulation written in Rust.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages