tubeshowcase●1,072,070 videos♡ My collection 0
← Learn to Code

Learn to Code15:43

1.1 What is a Vector? - The Nature of Code

The Coding Train ↗

From the creator

Welcome to Nature of Code Chapter 1: Vectors! What is a vector? How do they work in p5.js? These questions will all be answered in this first section of this series on p5.Vector. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/1-vectors/1-what-is-a-vector 🚀 Watch this video ad-free on Nebula https://nebula.tv/videos/the-coding-train-yt-1-1-what-is-a-vector-the-nature-of-code 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/JmEToUfk 🎥 Previous video: https://youtu.be/y7sgcFhk6ZM?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM 🎥 Next video: https://youtu.be/Rob0pbE7kks?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM References: 🔗 The Nature of Code Vectors: https://natureofcode.com/book/chapter-1-vectors/ Videos: 🎥 Coding Challenge 52 - Random Walker: https://www.youtube.com/watch?v=l__fEY1xanY 🎥 Classes in JavaScript with ES6: https://www.youtube.com/watch?v=T-HGdc8L-7w Timestamps: 0:00 Welcome to Chapter 1! 1:08 Scalars have magnitude 2:09 Vectors have magnitude and direction 3:40 Thinking of (x,y) as a vector 9:03 createVector() 9:34 Add vectors to the random walker code 11:35 Create a Walker object 14:00 Next up: start adding the foundation for a physics engine Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound 🚂 Website: http://thecodingtrain.com/ 👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-

Published 2020-03-07 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code