How to rotate a Three.js Vector3 by a certain angle around an axis?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
var vector = new THREE.Vector3( 1, 0, 0 );
var axis = new THREE.Vector3( 0, 1, 0 );
var angle = Math.PI / 2;
vector.applyAxisAngle( axis, angle );