A physarum simulation made with MetalKit and SwiftUI
Physarum-Simulation
This app is a fun and interactive Physarum Polycephalum simulation project, built using MetalKit and SwiftUI.
Explore the unique features of the slime mold by adjusting various parameters and see how it evolves and adapts to its new environment. ??
? Getting Started
To get started with the physarum-simulation
, simply clone this GitHub repo and open it in Xcode. Ensure you have the required dependencies (MetalKit and SwiftUI) installed.
git clone https://github.com/teddy-bersentes/physarum-simulation.git
? How to Use
- Open the project in Xcode.
- Run the project on your preferred simulator or connected iOS device.
- Use the provided sliders and options to adjust the Physarum simulation parameters.
- Watch the slime mold adapt and evolve in real time! ?
? Adjustable Parameters
The app allows you to tinker with the following parameters to create unique simulations:
- Agent Count
- Agent Speed
- Sensor Offset
- Sensor Angle
- Evaporation Rate
- Turn Speed
- Trail Weight
- Multiple Species
Feel free to experiment with different combinations to create amazing patterns and simulations! ?
? Resources
Explore more about Physarum Polycephalum and how to create similar simulations:
Enjoy playing with app and unleash your creativity! ?