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

Fixed rotated RootMotionView grid glitch #60349

Merged

Conversation

TokageItLab
Copy link
Member

@TokageItLab TokageItLab commented Apr 18, 2022

Fixed #60342. It should be fposmod() in normal space, not in inverted space.

Before:

2022-04-25.20.32.34-1.mov

After:

2022-04-25.20.30.52-1.mov

turn_rotation_root.zip

@TokageItLab
Copy link
Member Author

Oh something is still wrong, maybe something needs to be fixed comprehensively for RootMotion.

@TokageItLab TokageItLab marked this pull request as ready for review April 18, 2022 16:22
@TokageItLab
Copy link
Member Author

TokageItLab commented Apr 18, 2022

Bugs about drawing can be fixed in this PR, but additional fixes may be needed later in AnimationTree for rotation.

Edited:
I understand, there may be a problem with the NodeOneShot that I used as sample project (See godotengine/godot-proposals#4418).

So this PR is now fine.

@TokageItLab TokageItLab force-pushed the fix-rotated-root-motion-view branch from cc8c952 to df89969 Compare April 24, 2022 06:46
@TokageItLab TokageItLab added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Apr 24, 2022
from = accumulated.xform(from);
from_i = accumulated.xform(from_i);
from_j = accumulated.xform(from_j);
from = accumulated.xform_inv(from);
Copy link
Member

Choose a reason for hiding this comment

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

Is this ok? remember that if scale is present, xform_inv will not work.

Copy link
Member Author

Choose a reason for hiding this comment

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

@reduz transform's scale has been orthonormalized in line 116, so always accumulated's scale is should be 1.

Copy link
Member

Choose a reason for hiding this comment

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

alright looks good then

@akien-mga akien-mga merged commit f40952e into godotengine:master Apr 27, 2022
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.5.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Apr 27, 2022
@TokageItLab TokageItLab deleted the fix-rotated-root-motion-view branch May 2, 2022 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rotated RootMotionView grid cause glitch
3 participants