torsdag 28 februari 2019

Cleanup and physics exploration

Today we did some cleanup of the code in the old project that we base our project on. This involved some standardizing of code style, and separating some code into smaller functions and classes.

We also started implementing different materials for the surfaces of collision.

We tried exploring how to realistically implement collision reaction. In the process, we broke the old code. Now the balls cannot bounce off surfaces at all, they land and get stuck on the plane. Figure 1 shows this behavior.

Figure 1

To aid or exploration of the subject, we came across these videos explaining collision in a context similar to ours:

https://www.youtube.com/watch?v=1IvUNya9Zf0

https://www.youtube.com/watch?v=hz_KCgV_nkw

Our next step will be to adapt and implement what is said in the videos to three dimensions and non-vertical walls.

Inga kommentarer:

Skicka en kommentar