update ray definition and game 10 implamentation