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.
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.