avoid object go through other

Hello, I have some object in hand of player, how I can avoid it go through the wall and other things

Thanks

You need to use the physics engine. Start by reading the related page in the documentation.