diff options
author | nokoe <nokoe@mailbox.org> | 2025-09-29 23:57:44 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2025-09-29 23:59:01 +0200 |
commit | 4d883a67ef81ef9428e39734664430724668077f (patch) | |
tree | dc453df04c6f987326ea386e618b8886df99897c /client/player | |
parent | 9d2966c97b0022d48baf4d95d12926be9dc5750c (diff) | |
download | hurrycurry-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.gd | 4 |
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) |