I didn’t make the function yet as I’m still trying to understand how to deal with the interaction,
but the overall idea (I"ll keep it simple) is that if 2 projectiles for example hit each other , I want a function that would take the 2, and according to their values would determine what would happen (for example one of them still going and the other getting destroyed, lets say both have hp and damage).
In theory I might be able to do something as simple as that with 2 separate functions but for the real - a bit more complex idea. I need 1 function that would get as input the 2 objects that just overlapped and do whatever it wants with them - 1 function that runs 1 time instead of the current overlap function that runs once for every object that overlap.