Use the given WorldRay to update the active element selection based on UpdateConfig. The intention is that this function is called by higher-level user interaction code afterRayHitTest()has returned true.