动态SphereBufferGeometry(three.js)

时间:2015-09-30 16:23:57

标签: three.js

我正在尝试动态更改SphereBuffGeometry的phiLength但是我根本无法让它更新。有没有我想念的东西。这是我到目前为止的尝试:

var newGeo = new THREE.SphereBufferGeometry(this.sphereMesh.radius + 100,16,16, 0, Math.PI * 2, 0, Math.PI * radius / this.sphereMesh.radius );
	newGeo.applyMatrix( new THREE.Matrix4().makeRotationFromEuler( new THREE.Euler( 90 * ( Math.PI / 180 ), 0, 0, 'XYZ' ) ) );
	this.geometry.attributes.position.array = newGeo.attributes.array;
	// this.geometry.verticesNeedUpdate = true;
	this.geometry.attributes.position.needsUpdate = true;

0 个答案:

没有答案