How to create a 3D slider

Hello. I have been searching for a solution to this for numerous days, but could not find one. How would I be able to create a 3D slider which I can drag one way or another to affect a volume multiplier between a certain range along an axis? I will have two sliders in the same place, so this might also be necessary to take into account.

Thanks :slight_smile:

I am using JavaScript, by the way.

  • You need an object with a collider and a script to tell you when it is clicked.
  • You need a slider bar along which the thumb can travel according a float between 0 (far left) and 1 (far right).
  • When the thumb is clicked and the mouse held down, a movement with an x positif will increase that float, an x negatif will decrease it. This can be improved by calculating the vector from the thumbs position to the mouse 3D position on the horizontal plane, then the dot product with the vector made by the bar start → end points.