21
如何以一定的角度圍繞一個軸旋轉Three.js Vector3?如何圍繞軸旋轉Three.js Vector3?
如何以一定的角度圍繞一個軸旋轉Three.js Vector3?如何圍繞軸旋轉Three.js Vector3?
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);
Thanks Mr.doob。 THREE.Vector後忘了3。 – MaiaVictor
哎呀!固定。 ^^ – mrdoob
你現在應該使用Vector3#applyMatrix4(matrix)而不是Matrix4#multiplyVector3(vector) –