空のプレハブのプログラムで呼び出したプレハブの中に
public class BMove : MonoBehaviour
{
// Start is called before the first frame update

private float MoveX = 0.01f;
void Start()
{

}

// Update is called once per frame
void Update()
{
Vector3 BPos = transform.position;

if (BPos.x < 0)
{
transform.Translate(MoveX, 0, 0);
}
}
void OnTriggerEnter(Collider col)
{
Debug.Log("xxxx");
}
}
と仕込んで2つ同じプレハブを登場させて衝突した時にデバッグメッセージのxxxが表示されると思っていたら表示されない
プレハブにはBoxCollider2DとRigidbody2dはコンポーネントしている(トリガーのチェックもオンにしている)これが衝突判定が取れないのはなんでだろう。