MacSkelly Posted February 4, 2016 Share Posted February 4, 2016 I'm creating a town building game where citizens will have to walk from one building to another. I have an animation working where the citizen mesh moves from one building to another in a straight line. What I'm having trouble with is figuring how to get them to avoid a mesh that might be in the way. So my question is: are there any built in features that allow you to deal with this simply? Sorry if this is worded badly. I just basically need a mesh to move from one point to another whilst avoiding meshes in the way. Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted February 5, 2016 Share Posted February 5, 2016 Hi, Your subject is about crowd simulation. I'm afraid that babylon doesn't handle that by default. I've made a demo last year : http://www.visualiser.fr/Babylon/Crowd/ The post about the demo is here : You can look at my source code in your browser . Crowd simulation isn't really an easy thing to perform, algorithms are really complex. I ve made a typescript port here : github.com/samuelgirardin/RVO2_JS and Loth made a real javascript port here : https://github.com/lo-th/Rvo.js You can search too for the term 'reciprocal collision avoidance' to learn more about this great subject. sam Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 5, 2016 Share Posted February 5, 2016 Hi guys! I think it is called "path-finding" sometimes, too. http://www.html5gamedevs.com/search/?&q=pathfinding&type=forums_topic&nodes=28,29,30,31 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.