Check for self collision