Rotate object around world axis

后端 未结 1 1164
渐次进展
渐次进展 2020-12-06 23:45

I am trying to rotate an object around the world axis. I\'ve found this question: How to rotate a object on axis world three.js?

But it didn\'t solve the problem by

相关标签:
1条回答
  • 2020-12-07 00:45

    As long as the object does not have a rotated parent, you can rotate the object around a world axis like so:

    object.rotateOnWorldAxis( axis, angle );
    

    axis must be normalized (have unit length); angle is in radians.

    three.js r.92

    0 讨论(0)
提交回复
热议问题