puksometron
Member
Hi,
I am using the Deathmatch AI Kit with PUN for the bot behaviour tree. I'm having a small problem with getting some of the agents to seek to a destination. Here is a video of the problem:
drive.google.com
When the match starts, all agents are assigned a waypoint. The waypoint shows up in the inspector for each agent, and the behaviour trees all show up as executing the Search For Target task. Some of the agents move correctly to their assigned waypoint, others will just get stuck and move around in circles, as shown in the video. I have tried to adjust the turning speed for the agents, but that hasn't helped. This problem happens on and off, some agents will move towards the waypoint correctly, others move and then just stop and run in circles, sometimes all agents move correctly to their waypoint.
Also, the scene demonstrated in the video is a large scene. The agents will always move correctly in a greybox scene I use for testing (made up of primitives), everytime I try to get them to move in a larger and more complex scene (the one shown has stairs for example), these problems start to occur. I have tried rebaking the NavMesh multiple times, but that does nothing. What could be causing this problem, and why would the behaviour be so different across multiple scenes? Thanks.
I am using the Deathmatch AI Kit with PUN for the bot behaviour tree. I'm having a small problem with getting some of the agents to seek to a destination. Here is a video of the problem:
Glitch.mp4

When the match starts, all agents are assigned a waypoint. The waypoint shows up in the inspector for each agent, and the behaviour trees all show up as executing the Search For Target task. Some of the agents move correctly to their assigned waypoint, others will just get stuck and move around in circles, as shown in the video. I have tried to adjust the turning speed for the agents, but that hasn't helped. This problem happens on and off, some agents will move towards the waypoint correctly, others move and then just stop and run in circles, sometimes all agents move correctly to their waypoint.
Also, the scene demonstrated in the video is a large scene. The agents will always move correctly in a greybox scene I use for testing (made up of primitives), everytime I try to get them to move in a larger and more complex scene (the one shown has stairs for example), these problems start to occur. I have tried rebaking the NavMesh multiple times, but that does nothing. What could be causing this problem, and why would the behaviour be so different across multiple scenes? Thanks.