Fixed collision detection for the scene and the character