Difference between revisions of "Advanced C++ Programming Tutorial 4"

From Chilipedia
Jump to: navigation, search
(Created page with "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. == Topic...")
 
Line 1: Line 1:
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.
+
Why don't you sit on this and rotate? Oh you don't know how? Well allow me to elucidate. Srsly tho, rotation math is pretty damn important shit, so pay attention.
  
 
== Topics ==
 
== Topics ==
 
=== Part 1 ===
 
=== Part 1 ===
* Vector dot product
+
* Angles, degrees, radians, and π
* Collision rebound physics calculation via vector operations
+
* Sine, cosine, and the unit circle
 +
* Arcsin, arccos
 +
* SOH-CAH-(TOA)
 
=== Part 2 ===
 
=== Part 2 ===
* Detecting collision
+
* Derivation of rotation formula: arcsin/arccos
* Implementing vector collision response (rebound) calculation
+
* Angle sum theorem (trig identity)
 +
* Derivation of rotation formula: angle sum theorem
 +
* Derivation of rotation formula: vector derivation
 +
* Using rotation to solve A3 homework (rotate to get plank normal)
 +
=== Part 3 ===
 +
* Vec2 rotation functions
 +
* Basic rotation of model
 +
* Implementing rotation into <code>Drawable</code> pipeline
 +
* Optimizing pipeline for rotation
  
 
== Video Timestamp Index ==
 
== Video Timestamp Index ==
Line 15: Line 25:
 
== Links ==
 
== Links ==
 
* [https://github.com/planetchili/advmath GitHub Repo (advmath)]
 
* [https://github.com/planetchili/advmath GitHub Repo (advmath)]
 +
* Note that the code for this tutorial can be found on the <starfield> branch of the repo
  
 
== Homework ==
 
== Homework ==
Fix the funky bug in the collision code.
+
Implement rotation of the camera in the world.
 
* [https://youtu.be/7cBUaFc1H8Q Solution Video]
 
* [https://youtu.be/7cBUaFc1H8Q Solution Video]
  
 
== See also ==
 
== See also ==
* [[Advanced C++ Programming Tutorial 4|Next in series (Tutorial 4)]]
+
* [[Advanced C++ Programming Tutorial 5|Next in series (Tutorial 5)]]
 
* [[Advanced C++ Programming Series]]
 
* [[Advanced C++ Programming Series]]
 
* [https://www.patreon.com/planetchili Planet Chili Patreon]
 
* [https://www.patreon.com/planetchili Planet Chili Patreon]

Revision as of 17:25, 11 July 2018

Why don't you sit on this and rotate? Oh you don't know how? Well allow me to elucidate. Srsly tho, rotation math is pretty damn important shit, so pay attention.

Topics

Part 1

  • Angles, degrees, radians, and π
  • Sine, cosine, and the unit circle
  • Arcsin, arccos
  • SOH-CAH-(TOA)

Part 2

  • Derivation of rotation formula: arcsin/arccos
  • Angle sum theorem (trig identity)
  • Derivation of rotation formula: angle sum theorem
  • Derivation of rotation formula: vector derivation
  • Using rotation to solve A3 homework (rotate to get plank normal)

Part 3

  • Vec2 rotation functions
  • Basic rotation of model
  • Implementing rotation into Drawable pipeline
  • Optimizing pipeline for rotation

Video Timestamp Index

Links

  • GitHub Repo (advmath)
  • Note that the code for this tutorial can be found on the <starfield> branch of the repo

Homework

Implement rotation of the camera in the world.

See also