web-dev-qa-db-ja.com

軸を中心にThree.js Vector3を回転させる方法は?

Three.js Vector を軸の周りに特定の角度で回転させる方法は?

24
MaiaVictor
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 );
71
mrdoob