Object partly going through collider

Hi, I have had this problem where when Im placing an object in my game and moving it, the object partly is going through the collider.

if ([dont worry about this] tog == true && mouseDown && [this is looking through all my roads] !roads[r].GetComponent().bounds.IntersectRay(ray))
{
[this moves the building to the mouse position] latestBuilding.position = new Vector3(selection.x, 0, selection.z) + latestBuilding.lossyScale / 2;
}
Thanks

I’m not fully sure of what is going on in the scene you show in the screenie. Can you describe it a bit further? Which object is going through which collider?

The red box is going through the collider.

I see several objects but I’m not sure which ones are relevant to said topic. Alternatively, just show the red box and the ground collider and explain the mechanics behind it. You say you are placing an object but I’m not sure what that entails. You’re placing it at run-time or in the Editor? Is that part of the game’s mechanics?

Are using gravity? if so, does the problem remains true if you simply drag the box up and let it fall onto the “ground” object?

The fact that no one else has attempted to help you out, may be a hint that you are simply not describing the problem clearly enough.