From 7612bae40de7f9494ebca230965989efada60778 Mon Sep 17 00:00:00 2001 From: tpart Date: Mon, 16 Sep 2024 13:51:38 +0200 Subject: Fix item holding position --- client/map/items/food_processor.gd | 3 +++ client/map/items/plate.gd | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'client/map/items') diff --git a/client/map/items/food_processor.gd b/client/map/items/food_processor.gd index c082a741..05b783c1 100644 --- a/client/map/items/food_processor.gd +++ b/client/map/items/food_processor.gd @@ -83,3 +83,6 @@ func finish(): static func base_position() -> Vector3: return Vector3(0., 0.4, 0.) + +static func height() -> float: + return .3 diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd index eb9ee4b5..28fd3f46 100644 --- a/client/map/items/plate.gd +++ b/client/map/items/plate.gd @@ -44,5 +44,5 @@ func setup_sounds(): take_sound.setup([preload("res://map/items/sounds/plate_take.ogg")]) put_sound.setup([preload("res://map/items/sounds/plate_put.ogg")]) -static func base_position() -> Vector3: - return Vector3(0., 0.05, 0.) +static func height() -> float: + return .05 -- cgit v1.2.3-70-g09d2