Recall that we set the ids of the spinner elements so as to distinguish between the three of them. Thus, based on the id passed as a parameter, we select the appropriate cgWorld method to receive the spinner value. We get the value corresponding to the spinner with a call to the object's method get_float_val.