Revert "rot changes"

This reverts commit 10023257b3.
This commit is contained in:
c0ffee 2021-08-19 12:23:37 -07:00
parent 10023257b3
commit b9e7b70abb
2 changed files with 1 additions and 1 deletions

View file

@ -92,7 +92,7 @@ namespace Rimworld_Animations {
if (quat.eulerAngles.y > 180f) quatDot = -quatDot; if (quat.eulerAngles.y > 180f) quatDot = -quatDot;
GenDraw.DrawMeshNowOrLater(mesh: graphic.MeshAt(rot: headRotInAnimation), loc: loc + orassanv + (bodyAddon.alignWithHead && !orassan ? headOffset : Vector3.zero) + v.RotatedBy(Mathf.Acos(quatDot) * 2f * 57.29578f), GenDraw.DrawMeshNowOrLater(mesh: graphic.MeshAt(rot: headRotInAnimation), loc: headPositionInAnimation + orassanv + (bodyAddon.alignWithHead && !orassan ? headOffset : Vector3.zero) + v.RotatedBy(Mathf.Acos(quatDot) * 2f * 57.29578f),
quat: Quaternion.AngleAxis(angle: num, axis: Vector3.up) * headQuatInAnimation, mat: graphic.MatAt(rot: pawnAnimator.headFacing), drawNow: drawNow);; quat: Quaternion.AngleAxis(angle: num, axis: Vector3.up) * headQuatInAnimation, mat: graphic.MatAt(rot: pawnAnimator.headFacing), drawNow: drawNow);;
} }