Changed ray/bounding object intersection method.