3d-simulations / snake-simulation / 0.0.1

Snake-like Simulation using pygfx and NumPy

Snake-like simulation example.
An album solution to run a snake-like simulation using pygfx and NumPy with Hooke-style springs and sinusoidal joint rotations.
Tags
napariPythonstable diffusionimaging
Citation
Solution written by
Kyle Harrington
License of solution
MIT
Source Code

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.