Use XRay for raycast.