daniu54 / earie-treasures

A 2d top-down loot-em-up with horror and stealth elements
0 stars 0 forks source link

Adding occlusion and physics #30

Closed Abb4 closed 1 year ago

Abb4 commented 1 year ago
Abb4 commented 1 year ago

I noticed that the AI character was getting stuck on player and walls, especially wall corners.

Apparently godot does not support static obstacle avoidance in 2d even though it does do that in 3d.

Another problem is that I want to define collision inside of the tilemaps because it is nicer. But assembling the navigation polygon from tilemaps could prove difficult. We need to sync with navigation server, extract the nav polygons from the individual tiles inside of the tile map, collect them into a single polygon and finally shrink the polygon and send it to the server as a new map. Then we may also need to assign the map to all the actors that are using it for pathing requests.

All in all I created a new issue to collect info: #31