TheDuckCow / godot-road-generator

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

Support using create menu with initially selected roadpoint #67

Open TheDuckCow opened 1 year ago

TheDuckCow commented 1 year ago

Right now, you can only use the "Create" menu to place in an initial 2x2 road if nothing else is selected, and it always places it at the origin.

The proposed change is to support adding a 2x2 (or whatever is selected) as the "next" road placement if an initial roadpoint is selected (nothing should be possible if more than one are selected). Under the hood, it should treat the 2x2 road to be added as though it's like a scene or prefab to be placed as a whole entity, and all the create menu is doing is spawning in those road points, and connecting the two together.

Ideally the new roadpoint template is always oriented based on the orientation of the currently selected node.

TheDuckCow commented 1 year ago

Before starting on this task, we likely need to align first on the general way to approach this and how to refactor current code to accomodate.