Object Rotation Script
Mobile
ObjectRotation Script. Script implements 3d rotations with different speed and directions. Also possible to set random rotation. Just add this script to your object(s) and set parameters. Script has input parameters(see image preview and webplayer): RotateX – enable/disable x rotation RotateY – enable/disable y rotation RotateZ – enable/disable z rotation ClockwiseX – set clockwise or counterclockwise direction ClockwiseY – set clockwise or counterclockwise direction ClockwiseZ – set clockwise or counterclockwise direction RotationSpeedX – set x-axis rotation speed RotationSpeedX – set y-axis rotation speed RotationSpeedX – set z-axis rotation speed RandomRotation – enable/disable random rotation Time – time for changing random rotation Package contains demonstration scene. The script is written in C# and commented.