Harald

No problem, it's better to ask than to wait indefinitely :).
Avatar
Harald

Harri
  • Postovi: 4101

yinmo

Harald je napisao/la:No problem, it's better to ask than to wait indefinitely :).
Hi, Harald
Sorry that I have to bother you again :lol:
The jittery problem has only been improved to an extent. I found that if the velocity is high enough, the push and bounce problem will come back. You can simply verify that by increasing the time scale of the SkeletonAnimation.
I guess it is related to the script execution order, therefore I tried to modify them a bit, so far, there is no luck in that regard.
Can you look into this problem again? Thanks a lot.
yinmo
  • Postovi: 20

Harald

yinmo je napisao/la:You can simply verify that by increasing the time scale of the SkeletonAnimation.
I'm sorry to say that I could not simply reproduce your issue in some local tests by setting skeletonAnimation.AnimationState.TimeScale to anything from 2 - 10. Could you please send us a minimal Unity project again that demonstrates this problem?
Avatar
Harald

Harri
  • Postovi: 4101

yinmo

Harald je napisao/la:
yinmo je napisao/la:You can simply verify that by increasing the time scale of the SkeletonAnimation.
I'm sorry to say that I could not simply reproduce your issue in some local tests by setting skeletonAnimation.AnimationState.TimeScale to anything from 2 - 10. Could you please send us a minimal Unity project again that demonstrates this problem?
Sure, :)
yinmo
  • Postovi: 20

Harald

Thanks for sending the reproduction project, we could reproduce the problem. We will get back to you once I've figured out what's going wrong.

---

This issue has just been fixed on the 4.1-beta branch, see this issue ticket:
https://github.com/EsotericSoftware/spine-runtimes/issues/2046
Some optimization (avoidance of unnecessary calls when updating in FixedUpdate) will be added soon as well (hopefully tomorrow).

A new 4.1-beta unitypackage has been released:
Spine Unity Download
If you would like to only apply the changes (to a 4.0 installation), it's these two commits (as referenced in the ticket):
https://github.com/EsotericSoftware/spine-runtimes/commit/69b2a5ce13e4b213b9feda6deec290ccc35d0e0f
https://github.com/EsotericSoftware/spine-runtimes/commit/322d042309e99628e674dacf2ca61051f6235795 (this only adds the if-condition if (UsesRigidbody) around the block).

Please let us know whether this fixes the issue on your end as well.
Avatar
Harald

Harri
  • Postovi: 4101

yinmo

Harald je napisao/la:Thanks for sending the reproduction project, we could reproduce the problem. We will get back to you once I've figured out what's going wrong.

---

This issue has just been fixed on the 4.1-beta branch, see this issue ticket:
https://github.com/EsotericSoftware/spine-runtimes/issues/2046
Some optimization (avoidance of unnecessary calls when updating in FixedUpdate) will be added soon as well (hopefully tomorrow).

A new 4.1-beta unitypackage has been released:
Spine Unity Download
If you would like to only apply the changes (to a 4.0 installation), it's these two commits (as referenced in the ticket):
https://github.com/EsotericSoftware/spine-runtimes/commit/69b2a5ce13e4b213b9feda6deec290ccc35d0e0f
https://github.com/EsotericSoftware/spine-runtimes/commit/322d042309e99628e674dacf2ca61051f6235795 (this only adds the if-condition if (UsesRigidbody) around the block).

Please let us know whether this fixes the issue on your end as well.
Thanks for such fast and great fix. It works like charm now :D
yinmo
  • Postovi: 20

Harald

Very glad to hear, thanks again for reporting! :)

I will post again as soon as the aforementioned optimization update has been released as well.

---

The optimization changes (avoiding multiple unnecessary skeleton updates) have just been committed to the 4.1-beta branch: https://github.com/EsotericSoftware/spine-runtimes/commit/f7aaa25ee13777fca07747a6b5793c40ea92824d
A new 4.1-beta spine-unity unitypackage is available for download here as usual:
Spine Unity Download: spine unity 4.1 beta
Avatar
Harald

Harri
  • Postovi: 4101


Natrag na Unity