inventory-system icon indicating copy to clipboard operation
inventory-system copied to clipboard

dropped item 3d improvement: define node for removal from scene tree

Open FlauschBert opened this issue 10 months ago • 1 comments

Version 2.1.8

If you import assets from FBX files you often do not have that much freedom to define where your RigidBody3D node is in the scene tree. So, you can not ensure that the RigidBody3D node is the top node for picking (and removal). For this case I added a variable to define these comfortably in inventory-system-demos/character/dropped_item_3d.gd: Image Set the "Remove Node" property to the top node and you are done. We also have to adapt the inventory-system-demos/character/character_inventory_system.gd to handle this correctly: Image

FlauschBert avatar Mar 29 '25 21:03 FlauschBert

These two codes are demonstration codes, I believe that making them as simple as possible with fewer lines helps the user understand better, although I agree with this change.

scriptsengineer avatar Mar 31 '25 01:03 scriptsengineer