Collision problem on parent object


Hello

I have some problems in the logic bricks and i was wondering if someone can help me solve the problems.

I want to use a object as sensor or someting of that sort.

So I have two objects - 2 cubes, “cube1” and “cube2”. “Cube2” is “ghost” and parentet to “cube1” “Cube1” is dynamic object. I want “cube1” to move when “cube2” touches obejct. Is that possible with the logic bricks, because i tried with logic bricks but it is not working.

Thanks for the help.

I found out how to do it - https://blenderartists.org/forum/showthread.php?313822-Collision-detection-by-bge-sensor&highlight=collision+not+working+on+parent