three.js中一个物体绕另一个物体旋转要如何实现?

刚学几天额,了解的也不是很多。有源码最好~~~感谢各位大神!

第1个回答  2016-08-23
Object3D.rotateOnAxis (axis, angle)
axis -- A normalized vector in object space.
angle -- The angle in radians.
Rotate an object along an axis in object space. The axis is assumed to be normalized.追问

内俩参数要怎么写呢?
Object3D.rotateOnAxis(new THREE.Vector3(0,0,0),360)
这样行么?

相似回答