32

Three.js Vector3を軸を中心に特定の角度で回転させる方法は?

4

1 に答える 1

89
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 );
于 2012-05-25T02:26:40.570 に答える