TheDuckCow / godot-road-generator

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

Auto generate lane segments with road segment updates #32

Closed TheDuckCow closed 1 year ago

TheDuckCow commented 1 year ago

WIP

TheDuckCow commented 1 year ago
Screen Shot 2023-01-28 at 11 28 29 AM

We now have some initially functional lane handlers! Still to do:

At this stage, I am wondering though if there is some inverted logic somewhere, as currently I'm going from start point to end point and only marking direction as reversed if the matched lane is also marked reverse.

TheDuckCow commented 1 year ago

I did not full resolve this issue, as it's a bit more complicated than I was hoping (I was hoping to lean on the presence of LaneType.TRANSITION_ADD/REMOVE but wasn't working out right away).

So, to not delay parallel dev, I'm going to merge in the meantime and track this as an additional update to fix.

TheDuckCow commented 1 year ago

Tests are not all passing, but touching unrelated parts of code, and are existing on dev. Our test coverage is actually pretty low right now, so we should probably improve on this (something to work on over time).