Jump to content

Avoiding collisions during animation.


Recommended Posts

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.

Link to comment
Share on other sites


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.





Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...