I need help with walls and objects

I did a little room(floor+roof+4 walls) with 3 crates in it, and i need to know how to make them “unwakable”(I can go through everything).

Thanx for your help!

You need to implement some sort of collision detection. Try gametutorials.com, I believe they have a tutorial about moving through worlds and not traveling through objects