Thanks for sharing this code.

It works fine when I run this code in enter frame.

But it is not properly working when I am using slider component for rotating it.

I am passing the values...