Movement control

how i can stop the movement of one object
when one other object is over one third object