Comment update
This commit is contained in:
committed by
GitHub
parent
bec2cd5323
commit
8c8d3e300f
@@ -173,11 +173,10 @@ namespace Barotrauma.Items.Components
|
|||||||
heldHand = picker.AnimController.GetLimb(LimbType.RightHand);
|
heldHand = picker.AnimController.GetLimb(LimbType.RightHand);
|
||||||
arm = picker.AnimController.GetLimb(LimbType.RightArm);
|
arm = picker.AnimController.GetLimb(LimbType.RightArm);
|
||||||
}
|
}
|
||||||
|
|
||||||
float xDif = (heldHand.SimPosition.X - arm.SimPosition.X) / 2f;
|
float xDif = (heldHand.SimPosition.X - arm.SimPosition.X) / 2f;
|
||||||
float yDif = (heldHand.SimPosition.Y - arm.SimPosition.Y) / 2.5f;
|
float yDif = (heldHand.SimPosition.Y - arm.SimPosition.Y) / 2.5f;
|
||||||
|
//hand simPosition is actually in the wrist so need to move the item out from it slightly
|
||||||
|
|
||||||
//DebugConsole.NewMessage("hand rot at " + heldHand.SimPosition + " and simpos at " + arm, Color.Green);
|
|
||||||
item.SetTransform(heldHand.SimPosition + new Vector2(xDif,yDif), 0.0f);
|
item.SetTransform(heldHand.SimPosition + new Vector2(xDif,yDif), 0.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user