thats if you move your player using the physics engine and the objects in the way have physics enabled on them, if not, then the moving entity will just collide or slide along the obstacles