Skip to content

Conversation

@maxbrundev
Copy link
Member

@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 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
Member

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants