Dynamic SphereBufferGeometry (three.js) -
i'm attempting dynamically change philength spherebuffgeometry cannot update @ all. there i'm missing this. attempt far:
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;
Comments
Post a Comment