5.2 Seeking a Target - The Nature of Code

Описание к видео 5.2 Seeking a Target - The Nature of Code

This video explores Craig Reynolds’ formula for Steering Behaviors in JavaScript (p5.js) beginning with “Seeking a Target.” Code: https://thecodingtrain.com/tracks/the...

p5.js Web Editor Sketches:
🕹️ Seek: https://editor.p5js.org/codingtrain/s...
🕹️ Seek With Sliders (Exercise): https://editor.p5js.org/codingtrain/s...
🕹️ Arrive (Exercise): https://editor.p5js.org/codingtrain/s...
🕹️ Pursue (Exercise): https://editor.p5js.org/codingtrain/s...

🎥 Previous video:    • 5.1 Autonomous Steering Agents Introd...  
🎥 Next video:    • 5.3 Flee, Pursue, Evade - The Nature ...  
🎥 All videos:    • The Nature of Code  

References:
🔗 Steering Behaviors for Autonomous Characters: http://www.red3d.com/cwr/steer/

Videos:
🎥 Gravitational Attraction:    • 2.5 Gravitational Attraction - The Na...  
🎥 Angles and Vectors:    • 3.3: Angles and Vectors - Nature of Code  

Timestamps:
0:00 Hello!
1:10 What is the desired velocity for seeking?
2:46 What is the steering force?
5:23 Let's make a Vehicle class from Particle.
6:25 Now we need a target.
6:48 Now let's add code to the seek method!
8:21 What can we do to make this feel a bit more realistic?
9:16 Adding a maximum force.
10:27 Let's do a little clean up.
11:05 What could you try next?

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/discord
✪ Nebula: https://go.nebula.tv/codingtrain
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • Start learning here!  

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#forbeginners #javascript #p5js

Комментарии

Информация по комментариям в разработке