My current challenge involves following the recommended steps to update a BufferGeometry as detailed in this specific document:
However, I am working with TypeScript and encounter an issue when attempting to modify values on
line.geometry.attributes.position.array
, similar to what is shown in the example:
positions[ index ++ ] = x;
positions[ index ++ ] = y;
positions[ index ++ ] = z;
This results in an error being thrown:
TS2542: Index signature in type 'ArrayLike<number>' only permits reading.
Does anyone know of alternative methods for updating a BufferGeometry during runtime?