mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
head offset adjust
This commit is contained in:
parent
28b0adb027
commit
1f29cea97b
2 changed files with 15 additions and 1 deletions
Binary file not shown.
|
@ -47,7 +47,7 @@ namespace Rimworld_Animations {
|
||||||
orassan = true;
|
orassan = true;
|
||||||
|
|
||||||
orassanv = new Vector3(0, 0, 0.23f);
|
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.z -= 0.1f;
|
||||||
orassanv.y += 1f;
|
orassanv.y += 1f;
|
||||||
|
@ -69,6 +69,20 @@ namespace Rimworld_Animations {
|
||||||
{
|
{
|
||||||
orassanv.x = 0.12f;
|
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);
|
orassanv = orassanv.RotatedBy(pawnAnimator.headAngle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue