Navemesh techniques around doors etc. - by scumble
Krypt on 28/5/2006 at 23:14
You should try creating a NavmeshSubtractionVolume to cover the door's position in its open state, plus a pretty significant space behind it. This will prevent the AI from running into the door because the Navmesh will now tell him to go around it. This was something we ended up doing for every door in TDS at one point, so check out the Navmesh in some of the OMs to see how we did it.
It shouldn't negatively effect on your non-door pathing or your gameplay in general. If it does, then you should set up your doors differently. Your doors should never open across paths you want AIs to traverse regularly. Try to set up your doors to open against walls or into corners AIs won't have much cause to walk into. Never make thin hallways with doors opening out into them.
scumble on 30/5/2006 at 07:36
Strangely enough, Krypt, the missions I looked at didn't have any subtraction volumes by doorways - they were mostly around furniture and other static meshes.
It seems I'm still having trouble with that doorway, mainly because the AI approaches at a shallow angle still - I suspect this is just a side effect of having a small room here - or the doors too close together at right-angles. It may be better to reconfigure this building with rooms that are a bit larger.