It’s been a while, hope everyone is well. I’ve been busy working on the other elements of my project and just finding some time to get back and improve my city.
I was looking to add a few moving features to the city that I have and that would be to have people walking around. I have one person walking as per the code below, but I wondered how to clone and space the people all over the city? for reference my city is at theblockcity . com
You may use much simpler setup with Yuka FollowPath steering behavior and, if you need, Wandering steering behavior.
In this case you even don’t need a navmesh.
All these examples are here - Yuka | Examples with Babylon.js , with link to Github.
Hey Labris, I’ve downloaded the sourcecode in Visual Studio. Looks very complicated to implement into my already existing model though. I think my objective is more like the one you shared earlier in the buildings but there isn’t a repo for that one.
In order to program path in abovementioned Yuka example with Follow path one needs to define some Vector3 waypoints in Path array.
It shouldn’t be complicated.
It will look like
Thanks, that looks great. Yes, it’s something I want to implement on my site so that people can walk around my city. The only trouble is, I had to severely reduce the quality to make it render at a decent FPS. Do you have a playground or something for the camera / person code?