Vectors and the Dot Product
Simplified exampleDrag the tips of A and B, or focus one and use the arrow keys.
- A
- B
- Length of A
- Length of B
- Angle
- A · B
I make The Learning Quests: gamified, single-file HTML learning paths for game development. Each one is a set of worlds full of quests and boss projects, with XP to earn as you go, and it runs right in your browser.
Three small, hands-on demos of ideas the quests teach. Each one is a simplified example.
Drag the tips of A and B, or focus one and use the arrow keys.
Drag the pink dot along the track, drag the marker on the curve, scrub t or press Play. Easing reshapes t before the lerp moves the dot from A to B.
Every tick, this graph checks whether health is low and runs one of two paths. Change the health and the threshold to watch the values flow through.
Print String
Collect all six shards. Then switch the techniques off and play again: the same controls, a very different feel. Clear the course once and a ghost of your best run races you on the next try.
Play a free sample of Blueprint Quest right here, or open it full screen in its own tab.
The full editions are available on Gumroad.