How to detect 3D collision in Unity?

In my Unity course i’m taking(2D game) the code for 2D collision detection is: void OnCollision2DEnter() would it be the same except no 2D in it. Thanks

OnCollisionEnter() Unity by default is 3d, all 2d methods will have 2d in them and the 3d counter parts do not. This is really the type of thing you could have just googled though, the unity documentation is quite extensive Unity - Manual: Unity User Manual 2021.3 (LTS)