TheDuckCow / godot-road-generator

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

Parent rotations mess with edge curves and Road Lanes #169

Open TheDuckCow opened 3 months ago

TheDuckCow commented 3 months ago

Discovered while trying to implement intersections with a more dynamic scene, we seem to not have a great parent inverse relationship

Example instanced RoadContainer scene with no rotation, and then with some rotation added:

Screen Shot 2024-06-06 at 11 17 17 PM Screen Shot 2024-06-06 at 11 17 01 PM

This is present on the dev branch, unsure if the released addon has this issue. FYI @bdog2112 on this task

TheDuckCow commented 3 months ago

Per a parallel post in our wheel steal repo, I had to do something similar with the RoadPoints at one point to invert one parent level of transform (not exactly our scenario here, but this code could be useful).