Virtual reality for maintenance

My students are working on a 3Dexcite VR simulation to simulate the maintenance of a machining center and we want to create a button (or a joystick) that the user could operate along an axis of rotation. To date, we have managed to create a rotation animation but not a free manipulation along an axis. Has anyone made this type of function?