aboutsummaryrefslogtreecommitdiff
path: root/client/player
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-09-29 23:57:44 +0200
committernokoe <nokoe@mailbox.org>2025-09-29 23:59:01 +0200
commit4d883a67ef81ef9428e39734664430724668077f (patch)
treedc453df04c6f987326ea386e618b8886df99897c /client/player
parent9d2966c97b0022d48baf4d95d12926be9dc5750c (diff)
downloadhurrycurry-4d883a67ef81ef9428e39734664430724668077f.tar
hurrycurry-4d883a67ef81ef9428e39734664430724668077f.tar.bz2
hurrycurry-4d883a67ef81ef9428e39734664430724668077f.tar.zst
use deep fryer basket; persist item rotation on counters
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)