I using BoxCollider2d.The object consists of three parts: body, top and bottom. I scale the body, top and bottom moving relative to the body with a script: script transform.position = anchor.position;. It scaling, by pressing buttons up and down, collisiont is not working. Download archive
script transform.position = anchor.position;
![alt text][1]
[2]