- Edited
I know that KidsCanCode.com has a tutorial on context-based steering but, it's focuses on 2d and I don't know how to alter the code so it can work in 3d. I've watched the YouTube video on the subject , so I know that it can work in 3d( even though the video didn't show examples of the 3d code). Does anyone know how to make the code work in 3d? GDScript had a video on a simple and equally important topic entitled The Easy Way to Make Enemies See in Godot; video also had similar looking code. However, I don't know how to make the code in that video work in 3d. Does anyone know how to make the code in these videos work in 3d? Every time I try to follow the tutorial in 3d, I change the 2d raycast to a 3d raycast and the Vector 2 to Vector 3. However, the code doesn't seem to work at all. Does anyone know how I can adapt the code in these tutorials in 3d? It would be great if I could use this technique for an enemy AI I'm working on.