I really appreciate the comment! If enough people request something like this, I see no reason to not do it! 🥜 The fun thing is that the whole steering concept works almost identically in 3D to how it does in 2D. One change that you could do would be to, maybe, not make the fish follow the mouse, as the mouse only moves in 2D space, but rather to create a new moving target which the fish could follow.
If you want to use the same algorithm for following a target, the first thing that comes off in my mind is to use a 'carrot on a stick' method. Basically, you attach a target in front of your vehicle or character, and when you press w, a, s, d, the target moves towards that direction, making the vehicle follow it. Keep in mind that there are many ways of doing this, each with their pros and cons. 🥜
This is gold. Thank you. I hope one day you might explain steering in a 3D space with a 3D fish.
I really appreciate the comment! If enough people request something like this, I see no reason to not do it! 🥜
The fun thing is that the whole steering concept works almost identically in 3D to how it does in 2D. One change that you could do would be to, maybe, not make the fish follow the mouse, as the mouse only moves in 2D space, but rather to create a new moving target which the fish could follow.
I'm very new to programming and vectors etc, and I was looking how to do EXACTLY THIS.
THank you!
I'm really glad it helped you! Feel free to let me know if there are any other topics you'd like to learn! 🥜
Cool demo of those little useful things, thanks!
ty!
What about a 3D implementation, probably with a car
Thanks for the suggestion! I'll look into it and add it to the list of potential future videos! 🥜🥜
Pretty nice bro, But what if i want to move the fish with the keyboard? something like w-a-s-d, how we do that?
If you want to use the same algorithm for following a target, the first thing that comes off in my mind is to use a 'carrot on a stick' method.
Basically, you attach a target in front of your vehicle or character, and when you press w, a, s, d, the target moves towards that direction, making the vehicle follow it.
Keep in mind that there are many ways of doing this, each with their pros and cons.
🥜