fix(aswid): eye position sliders rotate on the face's axes

The Eyes Position rotation was added to the Aswid's own twist, which works on
the head bone's raw axes: bone X points out of the face and bone Z sideways,
so Rotation X rolled the eyes and the mirrored Rotation Z tipped one eye up
and the other down. The slider rotation is now conjugated by the face frame,
so X tips, Y turns toward the temple and Z raises the outer corner on both
eyes alike. The female rotation defaults go back to 0, since the old numbers
meant other axes.
This commit is contained in:
kanym 2026-10-27 15:40:52 +01:00
commit ffba40650e
2 changed files with 22 additions and 7 deletions

View file

@ -44,8 +44,7 @@ namespace RacesOfValheim
BindRace(config, AlfarConfig.RaceId, true,
new Defaults { Separation = 0.006f, RotX = -17.524f });
BindRace(config, "Aswid", true,
new Defaults { Forward = -0.001f, Height = 0.001f, Separation = 0.006f, Size = 1.061f,
RotX = -4.543f, RotY = -1.514f, RotZ = -4.543f });
new Defaults { Forward = -0.001f, Height = 0.001f, Separation = 0.006f, Size = 1.061f });
BindRace(config, DvergarConfig.RaceId, false,
new Defaults { Forward = -0.011f, Separation = 0.005f, Size = 1.616f });
BindRace(config, SvermConfig.RaceId, false, new Defaults());
@ -96,7 +95,7 @@ namespace RacesOfValheim
if (rotation)
{
t.RotationX = config.Bind(section, body + " Rotation X", d.RotX,
new ConfigDescription($"{body} characters: tilts both eyes up or down, in degrees.",
new ConfigDescription($"{body} characters: tips both eyes down (+) or up (-), in degrees.",
new AcceptableValueRange<float>(-90f, 90f), new ConfigurationManagerAttributes { Order = order + 5 }));
t.RotationY = config.Bind(section, body + " Rotation Y", d.RotY,
new ConfigDescription($"{body} characters: turns the eyes toward the temples (+) or the nose (-), in degrees. Mirrored between the two eyes.",