Update vertices of a sphere

Hello, I am trying my first steps with three.js and have encountered a first hurdle … It seems that “sphere.geometry.needsUpdate = true;” has an effect only the first time. Nothing happens with all further calls. What am I doing wrong?

My source code so far:

The goal: The vertices of the sphere should change constantly.
The gravitation()-function works as you can see:
image

Try verticesNeedUpdate instead, needsUpdate does not exist.

1 Like

:slightly_smiling_face: Another sea shell mesh:

2 Likes