Slider and rotation around axis

Hi. I want to rotate on object around axes Z with a slider like the following example:
https://playground.babylonjs.com/#YLA7AA
Unfortunately object not rotating +180 and -180 degrees from start position. Can someone help me?

Hi, the rotate function adds a rotation, so just pass the difference:

https://playground.babylonjs.com/#YLA7AA#1

Thank you my friend!

1 Like