Geckolib | head rotation (not pivot)

Started by Darknessay on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Geckolib | head rotation (not pivot)

I have made a monster with animations, but when i enable "head" option it starts to look down in all animations (its like getting +45 degrees down), why?
Head rotates fine, but looks down, i cant understand the reason.
I tried to just rotate it a bit up in blockbench, but it gave no effect.
https://imgur.com/a/VYPdAvB

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
He has another animation…
Wed, 12/20/2023 - 11:46

He has another animation where he crawls along the ground, where his body is bent even more, and during this animation, his head is pointing down, straight into the ground. It's as if the rotation of the head is somehow multiplied by the rotation of the bones it is attached to.

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, I found something: in…
Wed, 12/20/2023 - 17:28

Okay, I found something: in the animations tab, at the bottom left there is a “keyframe” field - it shows the current rotation of the bone in the animation.
In different animations, the model's head is rotated differently, but the monster's body is always tilted, and the 0 value is always relative to the body, since the head is attached to it.
When I turn on the "head" group, its rotation becomes 0 values, and therefore the face is always directed parallel to the direction of the chest.
Is there any way to fix this? I want the model to have an animated head, but to rotate it based on the position the head is in the animation.