Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
0
1
00:00:00,030 --> 00:00:05,840
Do you want to have dynamic cities, maps with height variations, even breakpoints?
1
2
00:00:05,850 --> 00:00:08,970
Then graphs might be the data structure you're looking for.
2
3
00:00:09,000 --> 00:00:13,650
A graph is a data structure made out of a collection of nodes and edges.
3
4
00:00:13,710 --> 00:00:22,170
The nodes like these are the end points, and they usually store data as containers. And the edges
4
5
00:00:22,170 --> 00:00:25,620
are the connections between two distinct points.
5
6
00:00:25,710 --> 00:00:29,940
Notice here that the edges have only one way to go.
6
7
00:00:29,940 --> 00:00:33,540
This is actually a special type of graph called direct graph.
7
8
00:00:33,540 --> 00:00:36,660
Of course, they also have pros and cons.
8
9
00:00:36,660 --> 00:00:39,420
Let's find them out together. Using graphs,
9
10
00:00:39,420 --> 00:00:45,600
you can model any type of terrain, height or whatever else you need, street intersections and much
10
11
00:00:45,600 --> 00:00:50,100
more, and it can be easily updated if the map changes real time.
11
12
00:00:50,100 --> 00:00:56,490
But of course the graphs are much harder to work with than grids, let's say, because mostly you have
12
13
00:00:56,490 --> 00:00:58,170
to implement them yourself.
13
14
00:00:58,170 --> 00:01:03,690
Another option for having an environment for the AI is the navmesh.
1490
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.