3DStreet / 3dstreet

🚲🚢🚌 Web-based 3D visualization of streets using A-Frame
https://3dstreet.app
Other
262 stars 33 forks source link

Snapping #385

Open elisfsharri opened 1 year ago

elisfsharri commented 1 year ago

Add fixed positions for certain props where they can snap to. There should be the ability to enable / disable it. Examples :

elisfsharri commented 1 year ago

Here is a video that shows how snapping (and other things in road building) works in Cities Skylines 2

https://youtu.be/OXjSs_wV6sk?si=RnMzgZPMJNVL2ShP

kfarr commented 1 year ago

Thanks for the suggestion, this resonates with other feedback we have received including restricting the ability to move objects on the vertical y axis.

Maybe a "v1" could be "ground snapping" option that when activated does not allow objects to be moved in y axis by the user using the transform controls (the colored arrows near the object) and will automatically place the object on the correct y position when dragged. However the user can still use the right-hand properties panel of the editor to adjust object y position manually or uncheck the snap to ground option.

In later tickets we can tackle more advanced topics such as snapping models within certain groups to corresponding types of segments (ie cyclists in bike lanes, markings in separator segments, etc.)