Is there a simple and easy way, better if does not involve instanciating collision checkers or using signals, to get which Area3D is instanciated at some specific coordinates?
I have a few 3D areas (each with its CollisionShape3D) spread at some random coordinates.
Is it possible to write a method that given the coordinates return the Area3D at those coordinates, if present?
this would be the method structure: func get_area(coords: Vector3) -> Area3D
I have a few 3D areas (each with its CollisionShape3D) spread at some random coordinates.
this basically means they exist inside the SceneTree.
These 3d areas are either instanced inside a common node-container or are assigned a group. Either way, you can loop through them and then check if the Vector3 coords is inside its collision. Return the 3d area if that is the case.