【发布时间】:2012-05-31 15:05:09
【问题描述】:
如何将 Three.js Vector3 绕轴旋转一定角度?
【问题讨论】:
标签: javascript vector rotation three.js
如何将 Three.js Vector3 绕轴旋转一定角度?
【问题讨论】:
标签: javascript vector rotation three.js
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 );
【讨论】:
vector.applyAxisAngle( axis, angle );三.js r.69