tubeshowcase●♡ My collection 0
← Learn to Code

Learn to Code15:46

5.5 Wander Steering Behavior - The Nature of Code

The Coding Train ↗

From the creator

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 meth

Published 2021-09-16 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code