I have a slider where I want to move the handle between two points with the mouse/touch.
The handle is rotated to always face the points so if I could move it in x (localposition) towards the closest point to the mouse and clamp it to not travel outside the two points I would be a happy camper.
Anyone got any ideas how to achieve this, this is what I got so far since I can’t figure out how to move it in a good way.
Please, use the like button to show your appreciation, it’s what it’s for! Nobody needs to see a 8 year old thread necroed like this. It’s also against the forum rules.