raycast for x3dom
merge with server