Advanced C++ Programming Tutorial 3
From Chilipedia
The vector dot product. This saucy little number is gonna turn your world upside down, project it, and other such bullshits. Super powerful math stuff do not missit.
Contents
[hide]Topics
Part 1
- Vector dot product
- Collision rebound physics calculation via vector operations
Part 2
- Detecting collision
- Implementing vector collision response (rebound) calculation
Video Timestamp Index
Tutorial 3.1
[Expand]
- Introduction: using the vector dot product for rigid body physics problems 0:28
- What is a dot product? 2:52
- How to calculate the dot product 5:54
- Most common usage: "dot with a unit vector" 10:51
Tutorial 3.2
- Introducing the simuluation setup: plank and balls 0:38
- Coding the
Plank
class 1:08 - Coding the
Ball
class 4:08 - Spawning new balls and destructing when out of bounds 5:24
- Detecting ball collision 6:06
- Resolving ball collision (bounce) 15:20
- Homework assignment 18:50
Links
Homework
Fix the funky bug in the collision code.