stickTop += (stickTop - stickBottom) / (stickLength * scaleFactor);Then, stickTop range is limited so that you can alwasy get under it with the stickBottom. The scaleFactor depends on how fast you are updating the stickTop output display and maybe other factors. In this case it was set to 20, and the stickLength can vary between 0 and 10.
CS 377B: HCI Technology Stanford University, Autumn 1998 |
EE/CompE 2961: HCI Design San José State University, Autumn 1998 |
CS 436: HCI Technology Princeton University, Autumn 1998 |