Godot Version
Godot 4.2
Question
Hey Y’all! Programming a path finding system with ray collisions. Currently, before any checks are done I run an if statement to check if the ray is colliding. If it is, it goes forward and checks the colliders groups to evaluate what to do.
Currently, I have a consistent issue where on occasion when calling to get groups I will get a crash as it says "Attempt to call function ‘get_groups’ in base ‘null instance’ on null instance. "
I PRESUME that means that there are no groups with the collider. I want to know f there’s a way to check for null groups. I thought ray.get_collider().get_groups().is_empty(): would work but apparently not. Thanks for your help!