I am in my opinion still relatively new to coding (this is about year 3) and was wondering if this is possible in an easy way. Now the question might seem confusing so here is it in “code”:
OnTriggerEnter(Collision other) {
if(other != this.getOtherChildren.GetComponent<Collision>())
//code
}
The other way that I was thinking was an array with each child in that I loop through. The problem is there are quite a lot and constant collision detection.
And I want to do this as efficiently as possible so I can maybe use the child ignoring code in the future. So I wonder if there is a non heavy way to do this.
Thank you in advance!