This commit is contained in:
c0ffee 2022-10-25 13:12:41 -07:00
parent 9a6df8606d
commit 16cba95463
1 changed files with 2 additions and 2 deletions

View File

@ -406,8 +406,8 @@ namespace Rimworld_Animations {
headFacing = headFacing.Opposite;
}
headBob = new Vector3(0, 0, clip.HeadBob.Evaluate(clipPercent));
Vector2 bodyOffset = (pawn.story?.bodyType?.bodyGraphicScale != null ? pawn.story.bodyType.bodyGraphicScale : Vector2.one);
headBob.z *= bodyOffset.x;
Vector2 bodyScale = (pawn.story?.bodyType?.bodyGraphicScale != null ? pawn.story.bodyType.bodyGraphicScale : Vector2.one);
headBob.z *= bodyScale.x;
lastDrawFrame = RealTime.frameCount;