From 8c8d3e300f3e84ff8c549dba23b282ec9f1213d9 Mon Sep 17 00:00:00 2001 From: Josh Kerxhalli-Kleinfield Date: Wed, 1 Aug 2018 19:07:35 -0500 Subject: [PATCH] Comment update --- .../Source/Items/Components/Holdable/Holdable.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs index 3159deed5..5aa102b36 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs @@ -173,11 +173,10 @@ namespace Barotrauma.Items.Components heldHand = picker.AnimController.GetLimb(LimbType.RightHand); arm = picker.AnimController.GetLimb(LimbType.RightArm); } + float xDif = (heldHand.SimPosition.X - arm.SimPosition.X) / 2f; float yDif = (heldHand.SimPosition.Y - arm.SimPosition.Y) / 2.5f; - - - //DebugConsole.NewMessage("hand rot at " + heldHand.SimPosition + " and simpos at " + arm, Color.Green); + //hand simPosition is actually in the wrist so need to move the item out from it slightly item.SetTransform(heldHand.SimPosition + new Vector2(xDif,yDif), 0.0f); }