RacesOfValheim/JotunnModStub/Dvergar
kanym 8014986f0a fix(dvergar): socket the eyes into the head bone instead of following it
They were placed from the player root's axes every frame, which follows where the
body faces and knows nothing about where the head is looking - so an idle
animation turned the head and left the eyes behind, reading as attached to the
camera rather than to the face.

They are children of the head bone now, so position and rotation are inherited
and no longer computed. The reason that was avoided in the first place was not
knowing which way a rig bone points, and the answer turned out to be to stop
guessing: the body's forward and up, expressed in the head bone's local space,
are exactly the directions wanted, and because they are local they go on meaning
the same thing as the head turns. Measured once at build time, while the head is
still looking where the body is.

Scale is the only thing still asserted each frame, because it can change under
us. The bone carries the armature's hundredfold scale multiplied by whatever the
race renders at; dividing it out leaves the holder standing at exactly the race's
scale, which keeps the offsets underneath honest metres and keeps the eyes
shrinking with a Dvergar.
2026-08-05 20:28:01 +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): put the eyes on the head instead of on the camera 2026-08-05 20:14:08 +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): socket the eyes into the head bone instead of following it 2026-08-05 20:28:01 +02:00