Vectors
These video lessons accompany Chapter 1 (Vectors) from The Nature of Code book.
- #1.1
Vectors
28 Jul 2015This video covers the topic vectors: What is a vector? How do vectors play a role in programming motion and physics simulation in Processing?
- #1.2
PVector class
28 Jul 2015In this video, I look at how to apply the concept of a vector in Processing itself using the PVector class. The video accompanies Chapter 1 from The Nature of Code book.
- #1.3
Vector Math
28 Jul 2015This video covers the basics of vector math. What is a vector? How do you add and subtract vectors? Leading up to using vectors in code!
- #1.4
Vector Math II
30 Jul 2015This video continues the discussion about vector mathematics. How to calculate a vector’s magnitude (using PVector mag()) and how to normalize a vector (using normalize()) are also discussed.
- #1.5
Acceleration
30 Jul 2015Chapter: 1
- #1.6
Vectors Acceleration towards Mouse
30 Jul 2015In this video I look at how to calculate a vector that points from an object to the mouse. This vector is used as a “force” to pull the object towards the mouse position.