I got the following situation:
1. I'm picking one instance of object by compare of type A.
2. Checking foreach object of type B if the B object is overlapping with picked instance of the object A.
3. Do action on object B
My problem, is that object A and object B are placed in the same container and the result of the operation above is that foreach operation is only searching for the objects of type B which are belongs to the picked instance of type A.
This is how containers work. I know that we could escape from the picked instance by using a function but I really struggle how the solution should look like in this case.
I want to take an instance of type A and loop trough all objects of type B regardless of the container's relationship.