jenniferemshepherd / dawn

procedurally generated socio-genetic simulation
2 stars 1 forks source link

49 find by cell #65

Closed rcvink closed 6 years ago

rcvink commented 6 years ago

Closes #53 Closes #49

Code is somewhat lengthy, but it works!

Now, when collisions happen, the two parents are identified from the collision event, and the child's location is determined by the average of their two positions.

We added a findCellByBodyId() method to the cellRepository, and we added createFromParents(parent1, parent2) to the cellFactory.

I also turned wireframes off because its PRETTY.