I am working in new 3d editor for printing systems based on the threeJs editor but there is a needed to change default coordinate system from y-up to z-up. By searching in communities found some snippet code to implement that:
camera.up.set(0, 0, 1);
and rotate grid 90 ْ :
grid.rotateX(Math.PI / 2);
That’s work but occurs other problems:
- Cannot drag 360 ْ up-down it’s limited to 180 ْ
- Grid does not move in the same direction as the mouse drag for example you drag from left to right but grid revolves in up-down by some angle
How can i solve this issue?