When creating a TubeGeometry
, I supplied a SplineCurve3
/ CatmullRomCurve3
path as a parameter.
My goal is to update the position of each point on the path using
geometry.parameters.path.points[1].y += 0.01;
within the requestAnimationFrame
loop. Even though the values update in the console, the points themselves don't move. How can I achieve this?
Just to clarify, I'm not looking to modify the 'vertices' but rather the individual points that define the shape of the tube rendering.
By the way, here's the WebGL initialization and animation code for reference:
// JavaScript code snippet for initializing and animating a WebGL scene
// (Code is too long to display here)