Documentation in on Bounds is almost nothing, a few days ago I asked a question about the following issue but decided to rewrite it because I thought it was a bit confusing.
Lets say I have Object A and Object B and I want to be able to check if their bounds are intersecting.
Object A has a Boolean that if is true will check if it’s bounds are touching another object’s bounds and if it has a specific component, if it does, do stuff.
For example: (pseudo code)
if(mybool == true)
If(ObjA.bounds intersects ObjB.bounds && ObjB.GetComponent<scriptname>() != null)
How can I check if two bounds are intersecting and get a component of the owner of the intersecting bounds (if possible).
I pretty much need a OnCollisionEnter or OnTriggerEnter event I can check for at anytime and I am sure bounds is the way to go but if anyone has any better ideas I’ll accept that answer.