Added entity bounding box and terrain normal check.