For this project, I assume that the way that human walking is the best way to move and keep balance. Unity has its physical engine, therefore the rigged walking character would fall down if lose balance. For Nature of Code final, I am going to use genetic algorithm to get the best and most natural way of human movement.

Genetic algorithm in Unity (C#):

Here I set 40 frame circle of left hands and leg and right side will start at 20th frame. Every frame contains rotation of joints.

Fitness is evaluated by the time of duration.

Crossover: I randomly pick the first part from mom’s genes and rest part from dad’s. But this is a very bad crossover idea. Because every frame is generated randomly, so the parents might start with different walking circles or have different walking periods.

For final, I will continue this project and optimize the method of crossover.




Leave a Reply

Your email address will not be published. Required fields are marked *