Skip to content

[#80] Fix for goron spin on wake up animation#1714

Merged
dcvz merged 1 commit intoHarbourMasters:developfrom
garrettjoecox:80-goron-spin-fix
Oct 10, 2022
Merged

[#80] Fix for goron spin on wake up animation#1714
dcvz merged 1 commit intoHarbourMasters:developfrom
garrettjoecox:80-goron-spin-fix

Conversation

@garrettjoecox
Copy link
Contributor

Left a comment with explanation.

I personally would like this to have been fixed at a lower level but I went as deep as I could to find the interpolation method SkelAnime_InterpFrameTable and couldn't find any issues with it, or anything pointing to why this is inconsistent with hardware.

Also some-what similar to the attempted fix in #897 cc @leggettc18

@leggettc18
Copy link
Contributor

leggettc18 commented Oct 10, 2022

Does this still allow the gorons to morph between their getting up and curling up animations smoothly if you walk away before they finish either animation? The first time I tried to fix this, I did a similar thing but it broke the transition between those animations. Yours is subtly different in a way that I think wouldn't cause the same issue but want to be sure we've checked for that.

@garrettjoecox
Copy link
Contributor Author

Does this still allow the gorons to morph between their getting up and curling up animations smoothly if you walk away before they finish either animation? The first time I tried to fix this, I did a similar thing but it broke the transition between those animations. Yours is subtly different in a way that I think wouldn't cause the same issue but want to be sure we've checked for that.

Yes, the check for this->skelAnime.curFrame == 0.0f is the key point here, we only use the "fixed" animations (0/13) when an animation is not playing at all, meaning they are rolled up on the ground. If an animation is in progress it uses the original animations, which morph properly

Copy link
Contributor

@aMannus aMannus left a comment

Choose a reason for hiding this comment

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

Confirmed in-game this fixes it, including when gorons switch state mid-animation. Nice job!

@dcvz dcvz merged commit 14543d5 into HarbourMasters:develop Oct 10, 2022
@briaguya0
Copy link
Contributor

briaguya0 commented Oct 11, 2022

@Mergifyio backport develop-zhora

mergify bot pushed a commit that referenced this pull request Oct 11, 2022
@mergify
Copy link
Contributor

mergify bot commented Oct 11, 2022

backport develop-zhora

✅ Backports have been created

Details

1 similar comment
@mergify
Copy link
Contributor

mergify bot commented Oct 11, 2022

backport develop-zhora

✅ Backports have been created

Details

Kenix3 pushed a commit to Kenix3/Shipwright that referenced this pull request Oct 19, 2022
@garrettjoecox garrettjoecox deleted the 80-goron-spin-fix branch October 19, 2022 13:52
leggettc18 pushed a commit to leggettc18/Shipwright that referenced this pull request Oct 19, 2022
leggettc18 pushed a commit to leggettc18/Shipwright that referenced this pull request Oct 19, 2022
th-2021 pushed a commit to th-2021/Shipwright-cmake that referenced this pull request Nov 28, 2022
th-2021 pushed a commit to th-2021/Shipwright-cmake that referenced this pull request Nov 28, 2022
th-2021 pushed a commit to th-2021/Shipwright-cmake that referenced this pull request Nov 28, 2022
th-2021 pushed a commit to th-2021/Shipwright-cmake that referenced this pull request Nov 28, 2022
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.

5 participants