This is a simple 3D simulation of the trajectory of particle in magnetic field, visualized using the kiss3d library for windowing and rendering in Rust.
- Rust
- kiss3d 0.35 library for creating windows and drawing to the screen.
-
Clone the repository:
git clone [https://github.com/KarolPuczynski/particle_in_magnetic_field.git] cd particle_in_magnetic_field -
Install dependencies: Make sure you have Rust and Cargo installed. If you don't have them, follow the installation instructions on the Rust website.
Run the following command to build the project:
cargo build
-
Run the simulation: After building, run the simulation with:
cargo run
Here are some snapshots from the simulation

