Adjusted collision detection of tree