I am pretty new to Unity and am making a small example. Actually I have a cube which moves with my arrow keys. Now I have walls on the road, and I want my object to hit the wall but it pass through the wall.
I also have used this code, but no result:
http://www.unifycommunity.com/wiki/index.php?title=DontGoThroughThings