Scale object, collision not working

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]

Using unity translation method will not detect any collision. try using a rigidBody2D and then the
addForce function to move objects and detect collisions while moving a gameobject.

traform.localScale = new Vector3(x,y,z); //It worked for me