problem with the box colider?

Hi I am wondering if you could help me I am trying to set up a basic cube as a target but it seems that the cube collider is off set from the cube so when i hit it with my ball object it don’t hit i mean my score increases but the ball dose not conect with the cube . If I decrease the size of the ball it’s fine but if I increse the size of the ball to say 4 while the box is one it’s like i have a invisabel wall acting as a score zone I hope I am explaning myself properly plase help.

Hi @doogerie, first you have to check layer of the cube on which u attached the collider. The objects are depend to collide on the basis of the layer of a object. notice the layers of the target object and hitting object. Both objects should have collider and after that you have to attach the collider on collision script to the target object. If you attached OnTrigger Collision enter script to the target object then you have to click the Trigger box otherwise no need.
If nothing happened…then you should check Layer collision Detection of the layers…
go into Menu Panel → Edit → Project Setting → Physics(For 3D Game) or Physics 2D(For 2D Game) and select the layers which you have to collide with each other…
90414-layer-detection.png