I'm working on a game that has the player entering a vehicle. The vehicle and the levels are made out of tilemaps (top down perspective).
I would like NPCs to be able to enter the vehicle and path around it while it's moving. I've tried a couple of ways to get this going:
- Tilemap navigation for levels, NavigationRegion2D for vehicle.
This seems to work while everything is stationary, but when the vehicle moves the path fails to update beyond the original bounds of the NavigationRegion2D. I suspect that it's not detecting the change somehow. I attempted to update the local position and to rebake the region, but neither worked. - Tilemap navigation for levels and the vehicle
I have performance problems with this - moving the vehicle tanks the frame rate, I think it's due to trying to connect the navigation polygons even though the vehicle uses a separate navigation layer. Also, lining up the navigation polygons seems quite difficult, the Npcs fail to cross from the level into the vehicle.
Anyone have any ideas or handled something like this before?
I'm using 4.2 RC1.