Genetic Evolution (Behavioral Traits) Simulation using Unity3D
This is a simulation of Genetic Evolution with a focus on Behavioral traits passed between generation, In this simulation, survival is for those who remain on the ground and walk a lot.
Every character has a DNA
DNA consists of two genes:
Gene 1: store the Action when the ground is visible
Gene 2: store the Action when the ground is not visible
(Choice of the gene is dependent on the eyesight whether the character sees the ground or not)
Every character has a Brain Script, where the eyesight result (Ground is visible or not) decide which Gene will take place.
Eyesight is implemented using Debug.DrawRay along with a Physics.Raycast check for the hit position, represented by the yellow sphere on the ground.
Every Gene will have one of the three action options
Action options:
Action 1: Turn Right
Action 2: Turn Left
Action 3: Move Forward
Breeding Logic dependent on :
(Time walking + Time on the ground)
The source code is on my Github, It took place as a Challenge in my AI courses.
#unity #machinelearningalgorithms