Catalog
About
solutions.computational.life
sharing computational life
3d-simulations
/
snake-simulation
/ 0.0.1
Snake-like Simulation using pygfx and NumPy
An album solution to run a snake-like simulation using pygfx and NumPy with Hooke-style springs and sinusoidal joint rotations.
Tags
napari
Python
stable diffusion
imaging
Citation
Kyle Harrington
https://kyleharrington.com
Solution written by
Kyle Harrington
License of solution
MIT
Source Code
View on GitHub
Arguments
--num_agents
Number of agents in the simulation (default value: PARAMETER_VALUE)
--max_speed
Maximum speed of agents (default value: PARAMETER_VALUE)
--spring_constant
Spring constant for Hookes Law (default value: PARAMETER_VALUE)
--damping
Damping factor for the springs (default value: PARAMETER_VALUE)
--boundary_size
Size of the boundary for the simulation (default value: PARAMETER_VALUE)
Usage instructions
Please follow
this link
for details on how to install and run this solution.