且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

绕世界轴旋转对象

更新时间:2023-02-02 16:05:48

只要对象没有旋转的父对象,就可以像这样围绕世界轴旋转对象:

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必须规范化(具有单位长度); angle以弧度为单位.

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

three.js r.92

three.js r.92