refactor(eyes): bake the tuned eye corrections in, drop the sliders

The Eyes Position sections were a tuning tool. Their per-body, per-eye values
from playtest now live in RaceEyeTuning as constants, so every player gets
the tuned faces and Configuration Manager loses four sections. The Aswid -
Eyes section stays for now.
This commit is contained in:
kanym 2026-10-27 17:46:36 +01:00
commit 5b3b2ac88d
8 changed files with 89 additions and 169 deletions

View file

@ -196,7 +196,7 @@ namespace RacesOfValheim
// slant and the wrap are mirrored so both outer corners go up and back.
float side = i == 0 ? -1f : 1f;
// This eye's sliders from "Eyes Position - Alfar".
// This eye's hand corrections (RaceEyeTuning).
float forward = AlfarConfig.EyeForward;
float eyeHeight = height;
float eyeSeparation = separation;
@ -204,13 +204,13 @@ namespace RacesOfValheim
float wrap = AlfarConfig.EyeWrap;
float slant = AlfarConfig.EyeSlant;
float tilt = 0f;
EyePositionConfig.Tuning tuning = EyePositionConfig.For(AlfarConfig.RaceId, player, side);
RaceEyeTuning.Eye tuning = RaceEyeTuning.For(AlfarConfig.RaceId, player, side);
if (tuning != null)
{
forward += tuning.Forward.Value;
eyeHeight += tuning.Height.Value;
eyeSeparation += tuning.Separation.Value;
eyeSize *= tuning.Size.Value;
forward += tuning.Forward;
eyeHeight += tuning.Height;
eyeSeparation += tuning.Separation;
eyeSize *= tuning.Size;
tilt = tuning.RotX;
wrap += tuning.RotY;
slant += tuning.RotZ;