
5.5 Wander Steering Behavior - The Nature of Code
Craig Reynolds’ “Wander” steering behavior is one of my favorites! In this video, I implement my take on it in JavaScript with p5.js and encourage you to invent your own version! Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/5-autonomous-agents/5-wander
p5.js Web Editor Sketches:
🕹️ Main: https://editor.p5js.org/codingtrain/sketches/LVtVlS52Q
🕹️ With Sliders: https://editor.p5js.org/codingtrain/sketches/uxemh7FGc
🕹️ Deleting Positions: https://editor.p5js.org/codingtrain/sketches/EWHjy--Os
🕹️ 3D: https://editor.p5js.org/codingtrain/sketches/t6sFXmVrk
🕹️ Displacement (From Paper): https://editor.p5js.org/codingtrain/sketches/VdHUvgHkm
🕹️ Perlin Noise: https://editor.p5js.org/codingtrain/sketches/XH2DtikuI
🎥 Previous video: https://youtu.be/OxHJ-o_bbzs?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
🎥 Next video: https://youtu.be/DHPfoqiE4yQ?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
References:
🔗 Steering Behaviors for Autonomous Characters: http://www.red3d.com/cwr/steer/
Videos:
🎥 Polar Coordinates: https://youtu.be/O5wjXoFrau4
Timestamps:
0:00 Hello, let's wander together.
0:25 What is wander?
0:41 Creating the wander function.
1:01 There's more to it than just a random force.
4:19 Refining the wander function
6:23 Let's take a closer look at theta.
7:38 But what about the randomness?
10:16 Adding a path to the vehicle.
12:13 Finalizing the sketch.
12:40 The displacement method described in the paper.
14:07 What could you create?
15:13 Thanks for joining me!
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-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/
✪ Nebula: https://go.nebula.tv/codingtrain
🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
🔗 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-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#forbeginners #javascript #p5js