[WIP] Add selection center rotation and scaling
PR Details
Adds rotation and scaling from the center or from the last selected object
Description
You can now scale from the center from a selection as well as transforming away from the center rather than from the origin of each object. The selection can also be rotated from the center rather than only the last selected object.
Related Issue
#488
Motivation and Context
Sometimes it makes more sense to scale from the center rather than the last selected object. For example, something that takes up multiple objects like a room would be hard to scale otherwise.
Types of changes
- [ ] Docs change / refactoring / dependency upgrade
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] 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.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Edit: See below instead.
I already had these fixes but forgot to commit, sorry!
Scaling negative works which may or may not be a good thing, since it seems to break lighting but can also flip the model.
It's quite alright :) Doesn't quite seem to work correctly if object don't have zeroed rotation / are inside parents
@nesrak1 just checking, is the PR ready/finished?
Should be ready unless you find another bug I haven't seen yet
Ran a few tests and noticed some issues.
Here's what happens when I:
- Create entity with some rotation (i.e. 90 degrees Y axis)
- Put a sphere as children of this entity with some translation (i.e. Z = 2)
The gizmo is not at the expected location:

Here is what's expected:

@nesrak1 Hey, this PR hasn't been very active those past few months, are you still working on this or should we close this off ? If someone wants to take it from here please do so but leaving this active might prevent other people from tackling this issue.
I plan to pick progress back up soon but I don't know when I will finish it.