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.
Current Bug: 3D Dropping Crashes
In the current codebase, dropping an item into the 3D world will crash the game because DroppedItem._setup_pickup() attempts to add a null node to the scene tree. To test 3D dropping without crashing, you must temporarily comment out the _setup_pickup() call in world/dropped_item.gd until the PickupComponent is fully implemented.