don-tnowe / godot-wyvernbox-inventory

Action RPG-focused inventory system for Godot 3 and 4
MIT License
97 stars 4 forks source link

Add overlap-check for `GroundItemStackView3D` #16

Open don-tnowe opened 1 year ago

don-tnowe commented 1 year ago

2D items have this, 3D items do not. But rather than adding overlap-checking as a GroundItemStackView3D feature, I'd rather make it a separate system, to make it centralized and allow more optimizations.

A GroundItemHUD will let a GroundItemManager register and unregister items to display. The HUD will handle input, label positioning and clicking, non-overlap, frustum culling etc. When the connected camera moves, label positions are updated - simply offset for 2D and moved with self-implemented collision-checking for 3D.

What this also means: