TheDuckCow / godot-road-generator

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

Updated curve 'tilt' calculations #13

Closed bdog2112 closed 1 year ago

bdog2112 commented 1 year ago

Determined that the rotation ("tilt") formula in the RoadSegment._update_curve routine was generating a result of 0. This meant that the middle portion of a segment could never interpolate a smooth rotation between the start and end points.

Updated the tilt formula to use the local Z-rotation of the start and end points. Ran GUT and all tests passed.

TheDuckCow commented 1 year ago

Great, thanks for merging!

On Oct 27, 2022, at 9:33 AM, bdog2112 @.***> wrote:

Merged #13 https://github.com/TheDuckCow/godot-road-generator/pull/13 into main.

— Reply to this email directly, view it on GitHub https://github.com/TheDuckCow/godot-road-generator/pull/13#event-7684065506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWSI7PN56L42NFK5S6L4GLWFKVGBANCNFSM6AAAAAARPPPTQM. You are receiving this because your review was requested.