0 && intersect < rayLength ) rayLength = intersect;
}
// move sphere accordingly
RTG_Intersection.Translate.X = rayLength;
// color sphere accordingly
if( rayLength == 0 ){
RSC_Indicator.Color.R = 1;
RSC_Indicator.Color.G = 0;
RSC_Indicator.Color.B = 0; }
else {
RSC_Indicator.Color.R = 0;
RSC_Indicator.Color.G = 1;
RSC_Indicator.Color.B = 1; }]]>