ForesightMiningSoftwareCorporation / bevy_transform_gizmo

A 3d gizmo for transforming entities in Bevy.
Apache License 2.0
162 stars 40 forks source link

Snapping #7

Open aevyrie opened 3 years ago

aevyrie commented 3 years ago

Add angle and translation snapping

taladar commented 2 years ago

Not sure how you plan to implement this but one version of snap to grid functionality I always liked was the one Second Life uses where you don't snap while you are inside the grid markers and do snap when the mouse cursor moves outside (they are parallel to the main arrows for the axes).

aevyrie commented 2 years ago

Not sure how you plan to implement this but one version of snap to grid functionality I always liked was the one Second Life uses where you don't snap while you are inside the grid markers and do snap when the mouse cursor moves outside (they are parallel to the main arrows for the axes).

@taladar do you have an example video you could share, so I could better understand?

taladar commented 2 years ago

@aevyrie

Not my video but e.g. in this one he explains it quite clearly https://www.youtube.com/watch?v=-4Pniy7oj18&t=86s

aevyrie commented 2 years ago

That's cool! We will probably start with a very simple snapping mode (on/off, configurable snap distance), which can be built upon.