New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Editor] Improve Cameracontrol in Editor #1879
Merged
manio143
merged 14 commits into
stride3d:master
from
SVNMLR:improve-editor-cameracontrol
Oct 7, 2023
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
214298c
[Editor] Allow panning while Alt-Keys are beeing pressed
SVNMLR f25345b
[Editor] Change movement speed with MouseWheel
SVNMLR 0053680
[Editor] Use Camera movementspeed methods to control
SVNMLR 5db57b6
Merge branch 'Allow-paning-on-alt-press' into improve-editor-cameraco…
SVNMLR 13fa4ad
Merge branch 'master' into improve-editor-cameracontrol
SVNMLR fc4c66a
Merge branch 'control-movement-speed' into improve-editor-cameracontrol
SVNMLR 2103278
[Editor] Improve speed increments
SVNMLR 9f0780a
[Editor] Fix camera panning speed
SVNMLR 5ac5090
[Editor] Improve panning & Zoomlevels
SVNMLR 6cfc277
Merge branch 'master' into improve-editor-cameracontrol
SVNMLR 37d5a2f
[Editor] Improve Comments
SVNMLR 193324a
[Editor] Improve speed calc, speedsteps & UI-layout
SVNMLR 0f9f468
[Editor] Fix margins for cameraspeed settings
SVNMLR 36e3835
Merge branch 'master' into improve-editor-cameracontrol
SVNMLR File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for this division here? Shouldn't baseSpeed be modified instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intention here was to reduce the calculated panning speed (depending on the current movement speed) at a constant fraction to have a better feeling and control. This value was evaluated during testing.
So panning speed should be higher if the movement speed is higher or lower if the movement speed gets lower, too. But not "equal", to not be too fast. Its adapting some fraction of the current choosen movement speed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, since this is called every frame, can you make the division become multiplication instead and extract the constant 1/30 like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have implemented your mention. Its now a fixed value, which I have predefined, too.
Additionally I have extended the increments a little further and improved the Camera speed settings in the UI.
It now shows the current speedvalue and the Slider is a little wider, to have better control over the extended increments.
Here you can see the changes to the UI :)
I'm done now with all I wanted to do. Hope it is okay now and can be merged :)