Jump to content

How to force Agents to respect Terrain limits


Recommended Posts

Hi,

In crowd simulation, I use a tool shelf "Terrain" to create a terrain for agents. The agents don't penetrate the terrain which is good, however they eventually leave the terrain, i.e. go outside it (see attached)! I used obstacles to fix that, but is there any other way to do that?

 

off_terrain_agents.png

Link to comment
Share on other sites

I'm not sure of the best way to approach this but I bet you could try this:

Create a boundary by extruding geometry.

Turn that into an Obstacle using the shelf tools.

Make sure the normals face the right direction so the box doesn't cause glitches with the characters inside of it.

 

Maybe give that a try?

Link to comment
Share on other sites

Thanks Sam :) will try it and let you know...Just to update you, the need for this "behavior", i.e. not leaving terrain, has diminished or at least not as necessary as before :) Well, when I added more behaviors such as "seek", "follow path", "avoid", I was able to control agents more and they did not really have a chance to leave the terrain! But anyways, I am still in the testing phase, so I might need to implement your idea :) Anyways, I will update you once I test it ....

Thanks alot

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.

Guest
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.

×
×
  • Create New...