Edit of asset "Artificial Worm Brain AI" Accepted
| Old/Current | New/Edit | |
|---|---|---|
| Title | Artificial Worm Brain AI | Artificial Worm Brain AI |
| Description |
Description WormBrain is a Godot plugin that adds a worm to your 2D scene, one whose movement is driven by a simulation of the C. elegans neural connectome. C. elegans is a tiny nematode whose complete neural wiring has been mapped and published: 302 neurons, roughly 4,000 synaptic connections. WormBrain uses that wiring to decide how the worm moves: where it steers, when it speeds up, when it reverses. The result is something that navigates, forages, and reacts, not because it was scripted to, but because the network says so. It is closer to a playground than a simulation. Based on https://github.com/heyseth/worm-sim by Seth Miller. --- Quick Start 1. Copy addons/worm_brain_plugin into your project's addons folder. 2. Enable the plugin under Project → Project Settings → Plugins. 3. Add a WormNode to any 2D scene and run the project. Explore the Inspector to customize the worm's body shape, sensors, speed, and hunger behavior. The node also emits signals you can listen to: food detection, nose touch, hunger state so your own code can react to what the worm experiences. --- Notes / Limitations - Collision is advisory. When the worm touches an Area2D, it receives a neural signal, but there is no hard physics boundary. If the neural output says keep going, it will. To contain the worm inside your level, set limiting_area in the Inspector (default: Rect2(50, 50, 1000, 1000)). - Eating. The worm eats any Area2D belonging to the worm_food group when it overlaps it. Removing the eaten food from the scene is handled by your code. - Not scientifically accurate. The connectome data is real, but the mapping from neural activity to on-screen movement involves significant simplification. This is an interactive experiment, not a research tool. |
This plugin allows you to drag and drop a artificial worm to your game project. The worms AI is powered by a mapped C. Elegans worm brain. How to use: Enable the plugin, create a 2d scene, add a WormNode into it, Run the project. This is a little more than a conversion from js to GD script (and Godot Node structure) from this project: https://github.com/heyseth/worm-sim Make sure to check the editor properties of the worm and customize it, I struggled a bit to make this work, so it might have issues, please report them. Check the signals the worm broadcasts as well, listen. Notes: - Worm collides with Area2D, I inform the AI that it has collided, but if it wants to go thought, it goes through. Only way to contain the worm is by setting a proper limitingArea on the editor, it is initially hardcoded to Rect (50, 50, 1000, 1000) - Worm "EATS" any Area2D that is part of a group "worm_food". You have to handle removing the food from the scene. |
| Category | Tools | Tools |
| License | MIT | MIT |
| Repository Provider | GitHub | GitHub |
| Repository Url | https://github.com/leparlon/WormBrain | https://github.com/leparlon/WormBrain |
| Issues Url | https://github.com/leparlon/WormBrain/issues | https://github.com/leparlon/WormBrain/issues |
| Godot version | Godot 4.2 | Godot 4.2 |
| Version String | v2.0.1 | 1.0 |
| Download Commit | 4e586516c3dee0b3287c7aad50b1ed538c0514be | 8e31ff4235cde219fd1f96eaa4110849711b7c86 |
| Download Url (Computed) | https://github.com/leparlon/WormBrain/archive/4e586516c3dee0b3287c7aad50b1ed538c0514be.zip | https://github.com/leparlon/WormBrain/archive/8e31ff4235cde219fd1f96eaa4110849711b7c86.zip |
| Icon Url |
https://raw.githubusercontent.com/leparlon/WormBrain/main/icon.png
|
https://raw.githubusercontent.com/leparlon/WormBrain/main/icon.png
|
| Preview Insert | ||
|---|---|---|
| Type | video | |
| Image/Video URL |
https://youtu.be/AHSMkhsJKCM
|
|
| Thumbnail |
https://i9.ytimg.com/vi_webp/AHSMkhsJKCM/mq2.webp?sqp=COD4vrIG-oaymwEmCMACELQB8quKqQMa8AEB-AH-CYAC0AWKAgwIABABGH8gKSgvMA8=&rs=AOn4CLB2qePhOFnxyvE3uJ1KAP-pE97vLw
|
|