RacesOfValheim/JotunnModStub/Dvergar
kanym 196e413573 fix(dvergar): measure the skull's axes once, so the eyes turn with the head
The eyes were parented to the head bone and still ignored every head animation,
which should have been impossible - a child cannot refuse its parent's rotation.
It was not refusing it. It was being handed the exact opposite every frame.

The offsets were built from directions computed as
headBone.InverseTransformDirection(playerRoot.forward), and that was recomputed
on every placement. As the head turns, the same world direction expressed in the
head's local space rotates by exactly the negative of the head's rotation - so
the local offset counter-rotated and cancelled the animation out. The eyes rode
the head's position perfectly and its rotation not at all, which is exactly what
it looked like from the first screenshot onwards.

The axes are now measured once, at build time, while the head is still looking
where the body is, and kept on the eye holder. Fixed in the skull's frame, they
ride every animation for free - which was the whole point of parenting to the
bone in the first place.
2026-08-05 20:54:30 +02:00
..
DvergarAbilities.cs feat(dvergar): rename from Dvergur, and give it a lightning affinity 2026-08-04 00:22:58 +02:00
DvergarConfig.cs fix(dvergar): push the eyes out to the surface of the face 2026-08-05 20:51:11 +02:00
DvergarPatches.cs feat(dvergar): give the eyes a glow, and take the colour from the stars 2026-08-05 20:05:52 +02:00
DvergarProgression.cs feat(dvergar): rename from Dvergur, and give it a lightning affinity 2026-08-04 00:22:58 +02:00
DvergarRace.cs fix(dvergar): put the eyes on the head instead of on the camera 2026-08-05 20:14:08 +02:00
DvergarStatusEffects.cs feat(dvergar): rename from Dvergur, and give it a lightning affinity 2026-08-04 00:22:58 +02:00
DvergarVisuals.cs fix(dvergar): measure the skull's axes once, so the eyes turn with the head 2026-08-05 20:54:30 +02:00