Simulating Evolution in an Ecosystem | Part 2
Автор: Bones
Загружено: 2024-02-11
Просмотров: 1224
Описание:
Part 1: • Simulating Evolution in an Ecosystem | Part 1
This is a simple ecosystem simulation and this video explores natural selection as boids evolve themself to survive as long as possible.
Link to source code:
https://github.com/bones-ai/rust-ecos...
Inspirations:
Daniel Shiffman's (TheCodingTrain) Ecosystem simulation - • Coding Challenge #69: Evolutionary Steerin...
Craig Reynolds steering behaviours - https://www.red3d.com/cwr/steer/
Some technical details:
The boids use forces of attraction/repulsion (affinities) to traverse around the world.
When the simulation initially begins, all boids are seeded with random affinities and perceptions (vision/range).
By the process of natural selection, boids that are unfit to survive don't live long enough to replicate. And the ones that do replicate have small mutations to themself, resulting in a child boid that could either be better or worse than the parent boid.
There's a small random chance a boid may replicate when the following conditions are satisfied, it's health is greater than max-health / 2 and it hasn't already replicated in the past few seconds.
Food gives the boids +5 health while poison reduces -20 from them. So the boids have to learn that eating poison is really for them.
If you have any more questions on how something works, let me know in the comments :)
----
I frequently post updates on my twitter,
BonesaiDev - / bonesaidev
Other links - https://bonesai.vercel.app/
---
Contents:
0:00 - Intro
0:16 - Artificial bird-like creature
0:50 - Predator Boid
1:25 - Food and Poison
2:14 - Timelapse of the ecosystem
4:28 - (Almost) Perfect Boids
5:27 - Predators dominating the ecosystem
----
🧠 Technical Details
Programming language: Rust (https://www.rust-lang.org/)
Game Engine: Bevy Engine (https://bevyengine.org)
----
🎵 Music:
Music from an artist named "Lukrembo" from
Source: https://freetouse.com/music
Song names:
"Animal Friends"
"This is for you"
"Concierge Lounge"
"Teapot"
#rustlang #simulation #ecosystem
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: