How to avoid input ray passing into multipe objects ?

Hi all,

here am facing a very big problem while dragging object. Consider am having a cube(Static cube) in game view, and another cube(Movable cube) is in opposite side. i need to drag the movable cube around the screen with drag in iOS. now what problem i’m facing is when i bring to the movable cube on the static cube, the static cube also moving along with the movable cube. i got to know the problem coming because of ray. the rays are passing every where. how to avoid this situation ?

Thanks.

tag ur movable cube, on hit check what u have hit n if its ur movable cube apply drag to it.