[Editor] Add dynamic snapping for selected objects by SVNMLR · Pull Request #1801 · stride3d/stride (original) (raw)
PR Details
Implements a dynamic snapping used while holding down a key (default: Left Shift) on manipulating (rotating/moving/scaling) an object/entity. It is possible to use STRG + Shift to duplicate with snapping, too.
Description
- New: Add new Hotkey Setting for dynamic snapping
- New: Add Method to handle dynamic snapping
Motivation and Context
To prevent from having to toggle the snapping on in the first place before manipulating an object, it is now possible to quickly (de)activate it, when it is (not) needed.
Types of changes
- Docs change / refactoring / dependency upgrade
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to change)
Checklist
- My change requires a change to the documentation.
- I have added tests to cover my changes.
- All new and existing tests passed.