Sorry if this is answered elsewhere, I've been trying to search for a while but can't seem to find it.
What I would like to do is have a draggable object that interacts normally while the user is dragging it but when they release the mouse button (or other input method) a script 'snaps' the location along the track to either 0 or 1. I suppose there might be future cases where I would like it snapped to other locations like halfway or something but for now I'm just trying to have a knob that can be slide to 'on/off' but still has the 'feel' associated with dragging.
I've tried writing a script that executes on moving the draggable and checks the InteractionA input and if 'not met' it checks the location along the track and sets the location based on whether it is halfway or not and if 'met' just loops back but this doesn't seem to work. It just makes the dragging really jerky and it doesn't seem to properly detect the user's state.
Thanks for any ideas!
Comments
Thanks.