Who doesn't like to watch giant robots fighting...?! Couple days ago, I was asked if I could help Megabots Guys to create a demo using View & Data to embed in their website. They provided me the 3D model and I put together some code to match their need:
They wanted to have their robot spinning on itself, while at the same time letting the user orbit manually if needed. When user starts interacting with the model, the rotation stops so it doesn't interfere. If no interaction occurs within 5 seconds, a default camera state is restored and the model starts spinning again. Lastly, when zooming in or out, the target remains focused on the centre of the model.
Here is the final result and the complete code packed into an extension. Also the Megabots page where they embedded my sample.