martindzejky / tiny-shop

Ludum Dare #54 submission.
https://ldjam.com/events/ludum-dare/54/tiny-shop
MIT License
0 stars 0 forks source link

Procedural navigation mesh #11

Closed martindzejky closed 1 year ago

martindzejky commented 1 year ago

I tried using the avoidance for agents (customers) but they just always get stuck either in a product or a basket. I think the solution is to construct a custom navigation mesh procedurally each time a product or a basket is placed on the floor. Use the existing navigation mesh from the tiles as a starting point, cut out the obstacles from it.

martindzejky commented 1 year ago

Getting there...

image
martindzejky commented 1 year ago

Problems:

Maybe one problem is that after the clip_polygons, some resulting polygons are really tiny and should be throw away. Maybe those tiny polygons are missing the edge connections. 🤷

martindzejky commented 1 year ago

Screw this, I don't want to spend time figuring out why it does not work. I have thrown away all the procedural mesh code, it was fun to write but not fun to debug. I reverted back to the avoidance obstacles for baskets. 🤷

Customers get stuck, oh well...

1eedfe5