Just watch the tutorial. Hope it helps with your game that involves collision detection with walls.
Thanks to HESSS for the Typewriter Effect!