javascript - in right handed coordinate system (three js) How can i swap the y axis with z axis? -


i have function rotate(). check if user has set axisup 'y' or 'z'. if user has set axis y dont because in both left , right handed y up. if choose z axis need rotate scene. not sure if following code correct.

some feeedback great. code correct? enough rotate z? need else after rotating scene object?

thank in advance.

my code:

    //if axisup === y nothing y in right handed     if (axis.axisup === "z_positive") {         scene.rotation.x = -90 * math.pi/180;     } else {          console.warn( 'warning: not supported');     } 


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -