Skip to content
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

Fix/gizmos translation #306

Merged
merged 12 commits into from
Aug 10, 2024
Merged

Fix/gizmos translation #306

merged 12 commits into from
Aug 10, 2024

Conversation

maxbrundev
Copy link
Collaborator

@maxbrundev maxbrundev commented Aug 3, 2024

Description

Fixing Gizmos Translations

The Gizmos Translation operation was generating an increasing offset between the target and the mouse position. It's now fixed thanks to proper computations.

Due to the Gizmos's Shader that scale the Gizmos models depending of the camera distance it seems that the mouse is not sticking to the Gizmos arrow but that's a visual effect, there is no more undesirable offset.

Limitations

The current implementation does not handle properly when the object is really far from the camera, the translation is stopped due to the T multiplier value's behind 0. This statement is necessary to avoid the behavior where the target is coming back from the opposite translation direction, this can be certainly fixed easily but will require a better support math side to understand exactly where is the mistake in the current translation computation.

Screenshots

gizmos

Related Issues

need to be created

@maxbrundev maxbrundev added the Bug Something isn't working label Aug 3, 2024
@maxbrundev maxbrundev self-assigned this Aug 3, 2024
@maxbrundev maxbrundev added this to the 1.4 milestone Aug 3, 2024
@maxbrundev maxbrundev requested a review from adriengivry August 8, 2024 19:30
maxbrundev and others added 2 commits August 8, 2024 23:05
Co-authored-by: Adrien Givry <contact@adrien-givry.com>
…istent required offset

Co-authored-by: Adrien Givry <contact@adrien-givry.com>
Copy link
Owner

@adriengivry adriengivry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@adriengivry adriengivry removed this from the 1.4 milestone Aug 9, 2024
@maxbrundev maxbrundev merged commit 839a729 into develop Aug 10, 2024
1 check passed
@maxbrundev maxbrundev deleted the fix/gizmos_translation branch August 10, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants