Hello, I quite new to Babylon and I need some help changing the inclination of a ramp (stretched box) through a slider.
I have created a ramp, angled 15 deg using rotate(BABYLON.Axis.Z, -Math.PI/12), and a slider with a range of 15-90 deg. When I change the slider, I rotate the ramp again using rotate(BABYLON.Axis.Z, -value); however, this results in the ramp rotating 360 multiple times. I need help stopping the ramp rotation at 90 deg (full range of slider).
Any help would be appreciated! Thank you in advance!