I am trying to control the rotation of a static mesh with a slider. The output of the slider is a float with values between 0 and 360 (red circle) because I want the mesh to make a full 360 turn when the slider ist at its maximum.
As far as I understand the Angle Degree value of the RotateVectorAroundAxis node adds degrees to the mesh-rotation. My slider only produces positive values but I want to have a negative rotation when I move the slider to the left and a positive rotation when I move it to the right. How do I go about this?
Slider, as in a UMG widget slider?
It’s a slider from a VR - Plugin and it is a 3D-Object in the scene that you can interact with but it works more or less like a UMG widget slider.
Subtract 180 from the result is what I wanted to say
Also, the MapRange node allows you translated any range into any other range.
Set the minimum value of the slider to -180, and the positive value to 180. This puts the slider in the middle and you can go 180 either way.
Thank you a lot for your suggestion. This doesn’t solve the problem because when the slider is at let’s say 360 and I move it to the left to 350 and subtract 180, the output is 170. Now the rotatearoundaxis-node will add 170 degrees. What I want is to subtract the rotation when I move the slider to the left.
