I want to rotate an object exactly like Arc rotate camera works. So instead of rotating the camera, the camera is fixed and the object rotates instead (using mouse inputs). What is the simplest way to do this?
A. Any pointers as to the approach for the rotation maths. Should I rotate the object along the camera(view) up and side vectors rather than the world axis? This topic has been asked several times but the solutions do not behave like the art rotate camera, mainly… that the rotations are not based on the cameras view vector. An example of this problem: https://www.babylonjs-playground.com/#CGXLT#5
B. Any way to just hijack the camera rotation behaviour from ArcRotateCamera and apply it to an object instead?
C. We can assume that the object I am trying to rotate has a pivot always at the origin.
D. Helpful code samples or psudocode are welcome