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 回答