2012-05-25 117 views

回答

60
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); 
+1

Thanks Mr.doob。 THREE.Vector後忘了3。 – MaiaVictor

+0

哎呀!固定。 ^^ – mrdoob

+1

你現在應該使用Vector3#applyMatrix4(matrix)而不是Matrix4#multiplyVector3(vector) –