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:
parent
f7a4494b39
commit
5b3b2ac88d
8 changed files with 89 additions and 169 deletions
|
|
@ -263,18 +263,18 @@ namespace RacesOfValheim
|
|||
// Index 0 is offset against the right axis, so it is the model's left eye.
|
||||
float side = i == 0 ? -1f : 1f;
|
||||
|
||||
// This eye's sliders from "Eyes Position - Sverm".
|
||||
// This eye's hand corrections (RaceEyeTuning).
|
||||
float forward = EyeForward;
|
||||
float eyeHeight = height;
|
||||
float eyeSeparation = separation;
|
||||
float size = eyeSize * scale * toLocal;
|
||||
EyePositionConfig.Tuning tuning = EyePositionConfig.For(SvermConfig.RaceId, player, side);
|
||||
RaceEyeTuning.Eye tuning = RaceEyeTuning.For(SvermConfig.RaceId, player, side);
|
||||
if (tuning != null)
|
||||
{
|
||||
forward += tuning.Forward.Value;
|
||||
eyeHeight += tuning.Height.Value;
|
||||
eyeSeparation += tuning.Separation.Value;
|
||||
size *= tuning.Size.Value;
|
||||
forward += tuning.Forward;
|
||||
eyeHeight += tuning.Height;
|
||||
eyeSeparation += tuning.Separation;
|
||||
size *= tuning.Size;
|
||||
}
|
||||
if (i == 0) size *= LeftEyeSizeMultiplier;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue