i use godot 4.3
so. I want to create grab system, if object what i want to grab in group “grab” i can do this, but when object ist’t in group “grab” i can’t do this, but it’s not working, i use guide in youtube but nothing cool and success not happened. This is script what i use:
var obj = null
var key = KEY_E
@onready var point = $“…”
func _process(delta: float) → void:
if Input.is_key_pressed(key):
if obj == null:
var collider = get_collider()
if collider != null:
if collider.is_in_group(“grable”):
obj = collider