Vidyuu
7 months agoPartner
How To Make NPCs Walk
Tutorial:
Scripts from the tutorial:
Hi,
Is this similar as using a Navigation Mesh as used in Left 4 Dead 2? When I make L4D2 maps (build a big box (room), insert walls, adjust walls, insert assets, move around assets, etc.), at some point it becomes necessary to make an area where zombies can walk and cannot walk. For example, it is okay to let zombies walk on the ground outside a building, on the floor inside of a building, but not on top of a table, not on top of chairs, not on top of a counter top, etc.
I drop what are essentially marker 'beacons', kind of like buoys you see out in an ocean, on the floor. They then make a net-very similar to, if you can picture this, a big fishing net that fishing boats use, and spread this big fishing net out onto the floor. Everywhere. The net goes everywhere. Then I simply cut out, as if I am using a giant pair of scissors, cut out the areas where the zombies are not allowed to walk. My CHARACTERS can still walk on those areas I cut out but not the zombies.
While the above that I types is not accurate the concept is in the ballpark. Is this concept more or less, or similar, or related in a way to the NavMesh that creators in this software, in these games, use?
Thanks!
Yes, very similar (having not used that and based on what you wrote), NavMesh automatically identifies areas as walkable based on the NPC properties settings (ie. height, radius, step height, etc). And using models to determine if that space is accessible. Models can be marked to be ignored by nav mesh. And there is also a nav mesh gizmo which is used to mark areas to be mapped or to be excluded. 😄
Ahhhh.
FYI, if you can find a copy of L4D2 it comes with a built in map editor/creator, a character editor, annnnd something else, I forget what.
Nice to meet you Vidyuu! Greetings from sunny Southern California! : )