Hi, I’m trying to implement something clickable thats rotates the scene to the clicked axis. Examples below.
Have you already tried to reuse the code from the editor? The relevant class is:
No, there isn’t, sorry. You have to study the code and figure out an integration by yourself.
I have seen the first image been implemented and I guess it’s copied from the blender. Try this GitHub - Fennec-hub/ThreeOrbitControlsGizmo: Blender like orientation gizmo for Three.js OrbitControls. Here is the live demo for it - Demo - Three Orbit Controls Gizmo
Do let me know if you are able to integrate. It took me around 30 minutes to find this😉.
When the camera is set to up(0,0,1), how should I set the rotation in the helper
I’m not sure about that. Like some other code in the repository, ViewHelper
assume +Y up. The editor itself does not allow to change the default up direction.
I think it should be my question, it should be the reason for using Spherical in EditorControls.js, it is Z up by default
Hello, can You help me with integration of this in the Angular App?
Thanks