Hi, I’m currently trying to have the instances of an InstancedMesh I created move independently of each other and orbit around the y-axis in the Scene. By any chance, is there a way to access the different instances to assign movements to them? If not, is there another approach I could use?
Hi!
Have a look at this forum post: Displaying 500 Basic Textured Models Performantly? (InstancedMesh or another method) - #13 by prisoner849
the relevant bit is just
tempObject.position.set(...)
tempObject.rotation.set(...)
tempObject.scale.set(...)
tempObject.updateMatrix()
instances.setMatrixAt(index, tempObject.matrix)
instances.instanceMatrix.needsUpdate = true
you would typically do this in your update loop, needsUpdate when you’re done