title: Handling collision from 4 directions with a static square?
body: <p>I am making a very basic game sort of zelda esque, I am having some trouble implementing collisions with walls and how it interacts with the player however. I am using a simple AABB algorithm to detect the actual collision but how should the player object respond? If I set the speed vector to zero it will just stick to the object forever without being able to remove myself from the square. Reversing the speed will make the player character also reverse in the other axis potentially which is not ideal. </p>
  
  <p>Any ideas on how to deal with this?</p>