A Unity project simulating larvae movement with realistic peristaltic motion.
This simulation models larvae as 5-point segmented creatures that move using peristaltic waves (contractions and extensions) similar to real larvae. Each larva consists of:
- Head: The front segment
- 2/5 Point: First body segment
- Middle: Center segment
- 4/5 Point: Second body segment
- Back: Tail segment
Apply a drug to the currently selected larva by pressing its key:
- m — Morphine (reduces movement, slows peristaltic waves)
- c — Cocaine (increases activity; faster, more frequent contractions)
- e — Ethanol (depressant; reduces coordination, weakens contractions)
- k — Ketamine (dissociative; disrupts normal wave patterns)
- t — Tetrodotoxin (TTX; blocks neural activity, halts movement)
You need to have ffmpeg on path
If deathTime is -1, then larva has not died
Windows standalone:
C:\Users\<User>\AppData\LocalLow\Larvixon\simulation\Player.log
Linux standalone:
~/.config/unity3d/Larvixon/simulation/Player.log
Mac standalone:
~/Library/Logs/Larvixon/simulation/Player.log
Make sure you’ve cloned the LarvixON frontend repository — it contains the Flutter app that includes this repo as a submodule.
This is the easiest way to build.
- Open the Unity project from that submodule location.
- In the top menu, select: Flutter → Export WebGL.
You need to populate .github/workflows/.secrets file with actual values
https://game.ci/docs/github/activation
act --workflows ".github/workflows/build.yml" \
--secret-file .github/workflows/.secrets \
--secret UNITY_LICENSE="$(cat ~/.local/share/unity3d/Unity/Unity_lic.ulf)"