Improved world collision detection