Skip to content

Commit

Permalink
Fix head seek on hills, misc changes to avery.
Browse files Browse the repository at this point in the history
  • Loading branch information
riperiperi committed Feb 16, 2020
1 parent 370dfa9 commit b55a9b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified TSOClient/tso.content/Content/Objects/npc_CaretakerAvery.iff
Binary file not shown.
2 changes: 1 addition & 1 deletion TSOClient/tso.simantics/Entities/VMAvatar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ private void UpdateHeadSeek()
//keep seeking to target
if (UseWorld)
{
var hseekdiff = (targ.WorldUI.GetLookTarget() - new Vector3(VisualPosition.X, VisualPosition.Z, VisualPosition.Y)) * 3f;
var hseekdiff = (targ.WorldUI.GetLookTarget() - new Vector3(WorldUI.Position.X, WorldUI.Position.Z, WorldUI.Position.Y)) * 3f;
hseekdiff.Y -= 1f;

Avatar.HeadSeekTarget = Animator.CalculateHeadSeek(Avatar, hseekdiff, RadianDirection);
Expand Down

0 comments on commit b55a9b1

Please sign in to comment.