Page 1 of 1
Nav mesh zones?
Posted:
Mon Aug 02, 2010 2:04 pm
by Cracatoa
How do you use and make nav mesh zones?
Re: Nav mesh zones?
Posted:
Mon Aug 02, 2010 2:54 pm
by watusimoto
First, you download the 013 beta, then you hit Ctrl-A until you enter nav mesh zone editing mode.
Actually using them is much more complex, as it involves bot navigation, but basically you want to look in the wiki bot docs under navigation. Basically, you pick an object or point you want to navigate to, and then do a series of getWaypoint() calls, fly to those points, and soon enough you'll arrive at your destination via a relatively efficient path through the level.
Re: Nav mesh zones?
Posted:
Tue Aug 03, 2010 12:35 pm
by Cracatoa
Thanks!
Re: Nav mesh zones?
Posted:
Tue Aug 03, 2010 1:57 pm
by Cracatoa
Every bot I make just circles around its own flag. Why is that?
Re: Nav mesh zones?
Posted:
Tue Aug 03, 2010 2:50 pm
by watusimoto
Just guessing that it's because it's programmed that way?
Post the code, and let's see what's going on.
Re: Nav mesh zones?
Posted:
Tue Aug 03, 2010 3:37 pm
by Cracatoa
Here is the level.
Re: Nav mesh zones?
Posted:
Tue Aug 03, 2010 5:16 pm
by watusimoto
So this uses quickbot -- did you modify that from what was posted in the forums?
Re: Nav mesh zones?
Posted:
Wed Aug 04, 2010 12:52 pm
by Cracatoa
No.
Re: Nav mesh zones?
Posted:
Wed Aug 04, 2010 2:43 pm
by karamazovapy
Actually, I think these bots DO mostly just orbit their flags if they're in a defensive posture. Also, the AI is pretty limited for anything other than CTF.