TheDuckCow / godot-road-generator

A godot plugin for creating 3D highways and streets.
MIT License
311 stars 15 forks source link

Resolved texture assignment for segments between flipped RoadPoints #164

Closed TheDuckCow closed 2 weeks ago

TheDuckCow commented 2 months ago

This was an issue if two connected RoadPoints were both pointed towards each other or away from each other while being directly connected.

This does not yet resolve related issues with the RoadLane construction, though there are some improvements in making them reuse existing roadlanes.

Added new test for this scenario, now passing. Edit: Updated again now and still all passing

Closes #136

TheDuckCow commented 2 weeks ago

I'm going to focus on merging this today most likely, having not addressed all the road lane direction issues.

TheDuckCow commented 2 weeks ago

I'm going to merge this now as the scope has expanded a little too much, indeed the source issues with wrong visual lanes has been resolved. The RoadLane situation is still unfortunately rather messy for any scenario where the RoadPoints are flipped around. I don't want to hold this up further, and likely we'll encourage users to ensure that all RoadPoints "face the same way" within a connected stretch. We could even add logic to auto-flip RoadPoints around if necessary.