3D World Items¶
When an item is dropped from the UI, the system spawns a DroppedItem node in the 3D world. This node is a RigidBody3D that physics simulation acts upon.
Visuals¶
- If the
ItemDefinitionhas amodel_sceneassigned, that 3D model is instantiated as a child. - If no model is assigned, it falls back to a default
BoxMeshso the item is still visible.
Physics & Spawning¶
When an item is dropped outside of a valid UI slot:
1. DragDropSystem finds the player node (via the "player" group or the first CharacterBody3D).
2. It spawns the DroppedItem scene
Pickup System (Implementation Required)¶
The DroppedItem script includes a commented-out _setup_pickup() method. To implement the item pickup functionality, you will need a PickupComponent (either from the demo or custom-built).