aboutsummaryrefslogtreecommitdiff
path: root/client/player
diff options
context:
space:
mode:
Diffstat (limited to 'client/player')
-rw-r--r--client/player/player.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/player/player.gd b/client/player/player.gd
index 94034352..58ae9732 100644
--- a/client/player/player.gd
+++ b/client/player/player.gd
@@ -166,6 +166,10 @@ func pass_to(player: Player, hfrom: int, hto: int):
player.set_item(i, hto)
func _process(delta):
+ for h in hand.size():
+ if hand[h] != null:
+ hand[h].rotation_target = hand_base[h].global_rotation.y
+ hand[h].position_target = hand_base[h].global_position
_anim_angle = fmod(_anim_angle + delta, TAU)
position_anim = G.interpolate(position_anim, position_, delta * 10)
rotation_anim = G.interpolate_angle(rotation_anim, rotation_, delta * 10)