So I'm making a copy of noobtuts tutorial on Snake - http://noobtuts.com/unity/2d-snake-game
I've done all their steps and am at the point of extending the game solo, however I've an issue with the basic set-up. My box colliders aren't working at all!
I've 4 borders each with a Box Collider 2D, nothing fancy about them, then I've a SnakeHead with a Box Collider 2D, also nothing fancy about that either. Only the food prefab I have uses the IsTrigger. The Snake head also has a Rigidbody 2D and I've experimented with putting a Rigidbody2D on the borders too but it's not solved my problem.
Basically when I have the Snakehead move to the border, it just passes through the border! It doesn't stop, it doesn't do anything, just continues straight through the border.
I've a basic gif showing off what I mean - http://imgur.com/sITs7eK.
The only different thing about the box colliders is that for the snake they're 0.7 in size, not 1. But even when put to 1, they don't work properly.
Why isn't it stopping the snake from moving? why can it just pass through for no gorram reason I can think of. I've never had to tell an object that when it hits another object to not move through it from what I can remember.