-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Fixed rotated RootMotionView grid glitch #60349
Conversation
Oh something is still wrong, maybe something needs to be fixed comprehensively for RootMotion. |
Bugs about drawing can be fixed in this PR, but additional fixes may be needed later in AnimationTree for rotation. Edited: So this PR is now fine. |
cc8c952
to
df89969
Compare
from = accumulated.xform(from); | ||
from_i = accumulated.xform(from_i); | ||
from_j = accumulated.xform(from_j); | ||
from = accumulated.xform_inv(from); |
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.
Is this ok? remember that if scale is present, xform_inv will not work.
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.
@reduz transform's scale has been orthonormalized in line 116, so always accumulated's scale is should be 1.
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.
alright looks good then
Thanks! |
Cherry-picked for 3.5. |
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