fixed collision resolution failure when moving into walls/corners