how to detect with a script if object is touching another object Bolt unity 3d code example
Example: unity check if colliders are touching
public Collider2D objectCollider;
public Collider2D anotherCollider;
private void SomeMethod()
{
if (objectCollider.IsTouching(anotherCollider))
{
// Do something;
}
}