getting name of 'intersecting' Game Object

Notice I said ‘intersecting’ and not colliding.

I need collision ‘turned off’ so that the 2 game objects don’t ‘repel’ each other.

Anyways I need to somehow determine

  1. if another Game Object is intersecting with the current Game Object.
    and
  2. retrieve the name of the intersecting game Object if there is one.

This is for a tile based board game. I need to detect when a game piece is ‘over’ or ‘intersects’ with any given tile.

Any feedback appreciated!

You could try this: Unity - Scripting API: Bounds.Intersects

However, for game pieces in a Tile game, I think there would be other ways to approach & accomplish what it is you’re after. I can’t be sure, without more information, just a strong hunch :slight_smile:

You’re looking for trigger colliders.

I should have said that, too :slight_smile:

Thanks! Yes looks like Trigger Collider should work.