head offset adjust

This commit is contained in:
c0ffee 2021-08-12 15:54:33 -07:00
parent 28b0adb027
commit 1f29cea97b
2 changed files with 15 additions and 1 deletions

View File

@ -47,7 +47,7 @@ namespace Rimworld_Animations {
orassan = true;
orassanv = new Vector3(0, 0, 0.23f);
if (pawnAnimator.headFacing == Rot4.North || pawnAnimator.headFacing == Rot4.South)
if (pawnAnimator.headFacing == Rot4.North)
{
orassanv.z -= 0.1f;
orassanv.y += 1f;
@ -69,6 +69,20 @@ namespace Rimworld_Animations {
{
orassanv.x = 0.12f;
}
else
{
orassanv.z -= 0.1f;
orassanv.y += 1f;
if (bodyAddon.bodyPart.Contains("right"))
{
orassanv.x += 0.03f;
}
else
{
orassanv.x -= 0.03f;
}
}
orassanv = orassanv.RotatedBy(pawnAnimator.headAngle);
}
}