yaelatletl / godot-jigglebones

An addon that brings jigglebones to Godot Engine 4.0.
MIT License
126 stars 5 forks source link

Local Rotation does not work correctly #8

Open Mineorbit opened 1 year ago

Mineorbit commented 1 year ago

Hey i have an issue where the local axis rotation does not work correctly:

https://user-images.githubusercontent.com/5614276/235468773-eb63e379-73ba-4231-9cf6-700bcec2d217.mp4

Note how the initial rotation (y = 0°) produces the correct result, but rotating around the Y axis causes the headband to point to the sky. I have tested different configurations of the forward axis, even varying across bones, but none of them produced a correct result.

If one opens PlayerModel.tscn in this project: https://github.com/Mineorbit/DungeonsAndDungeons The issue can be reproduced by rotating the Skeleton3D around the Y axis

yaelatletl commented 1 year ago

Hey, just checked this, this issue is caused by having multiple jigglebones chained, there was a note about this in the original readme, and didn't see it got erased, but you shouldn't use jiggle bones on bones which's parent has jigglebones behavior. I'll try to address this limitation in the future.

Mineorbit commented 1 year ago

Hey, just checked this, this issue is caused by having multiple jigglebones chained, there was a note about this in the original readme, and didn't see it got erased, but you shouldn't use jiggle bones on bones which's parent has jigglebones behavior. I'll try to address this limitation in the future.

I removed all other jiggle bones except for the first two but the problem seems to persist. The important part is, that if i rotate the Skeleton3D by 180 degrees, the jiggle bones start pointing upwards somehow