r1sc / Open76

Interstate '76 engine reimplementation
GNU General Public License v3.0
52 stars 3 forks source link

Basic AI Pathfinding #9

Closed JJJohan closed 5 years ago

JJJohan commented 5 years ago

After spending more time than I'd like to admit figuring out the entity and object linkage was a little broken (Basically had to use the same label 'decoding' process as described on That Tony's blog), I managed to get a basic version of the AI pathfinding working.

Video of the exciting stuff in action:

<img src="https://i.ytimg.com/vi_webp/OOqRA-NlQbo/hqdefault.webp" alt="Pathfinding Video" width="240" height="180" border="10" />

There's a few little nitpicks I'll just mention up front:

There's a few miscellaneous tidy-ups sadly the file count got a bit out of hand after enabling text serialisation for Unity project settings, the commits themselves are still small enough to review individually.

JJJohan commented 5 years ago

Quick update - pathfinding now uses the road system. New video showing cars being able to handle corners and recovering somewhat after colliding with each other.

https://youtu.be/sL-LWlmTWJE

r1sc commented 5 years ago

I'm trying really hard to contain my excitement here.. Wow! This is awesome!! I'm sure it's fine but just gonna test it out anyway before merging it.

JJJohan commented 5 years ago

I'll try to at least keep future pull requests from changing half the project's files so it's a bit easier to see what I've done 😛 .

Parapsycho commented 5 years ago

That's awesome! Very exciting stuff. :)