Steps to use the script :
- Import the rotate controller script in your project.
- Add the script to the scripts folder.
- Now add the script to the prefab in which you want the rotation feature.
- Add a box collider to the prefab and set the box collider such that the whole model is contained in the box.
- Rotation feature is added to the model, you can build and run to see the feature.