Lecture 16: More of Lecture 15 (Collisions)

Ambient temperature: 73.5oF

Concepts

  1. It is entirely possible to make incorrect design decisions, and these can fairly easily be identified. However, there are often multiple correct answers to a given design decision, and it is not always clear-cut which one is best. Dr. Wong implies that it is not as important to choose the best design decision so much as it is to choose a correct one.
  2. When two balls collide, they may be overlapping. If you do not take their overlap into account when applying collision impulse, the balls will immediately collide again and do the wrong thing. A simple solution is “Nudging,” as described on the lecture webpage. The derivation of the mathematically correct solution is also provided.
  3. Visitor Design Pattern is introduced as a way to allow arbitrary algorithms to be run on composite data structures.

Resources

  1. Lecture 15 webpage (collisions): http://www.clear.rice.edu/comp310/f12/lectures/lec15/
  2. Mathematically precise handling of ball collisions with overlap: http://www.clear.rice.edu/comp310/f12/lectures/lec15/Collision_calculations.pdf
  3. Visitor Design Pattern: http://cnx.org/content/m16707/latest/