breadwinner/entities/pickupable/pickupable_item.gd
Hellie-xd e7aec1ae28 lil bit of progress
save spot reached.
2026-08-13 23:44:29 +02:00

17 lines
487 B
GDScript

@icon("res://addons/at-icons/node3d/hand.svg")
class_name PickupableItem extends RigidBody3D
# The @export_file tag creates a folder icon in the Inspector
# that only lets you select saved .tscn files!
@export_file("*.tscn") var scene_path: String
@export var mesh: MeshInstance3D
@export var collision: CollisionShape3D
var weight: float = 10.0
func _ready() -> void:
self.add_to_group("pickupable")
for x in get_children():
x.add_to_group("pickupable")
collision_layer = 17