As for the particle system to access each individual particle?

Hello!) I wanted to ask. Here I am Three.js created a system of particles:
var particleCount = 1000;
var particles = new THREE.Geometry();
var pMaterial = new THREE.ParticleBasicMaterial( { color: 0xffffff, size: 1} );
for ( p = 0; p < particleCount; p++ ) {
 pX = Math.random() * 10 - 50;
 pY = Math.random() * 10 - 500;
 pZ = Math.random() * 10 - 50;
 var particle = new THREE.Vertex( new THREE.Vector3( pX, pY, pZ ) );
 particles.vertices.push( particle );
}
var particleSystem = new THREE.ParticleSystem( particles, pMaterial );
scene.add( particleSystem );

How to control individual particles ParticleSystem? Well, below they are, for example, scattered in different directions, as in the explosion or in the same direction, as from the nozzle of a jet engine. Thanks in advance)
September 26th 19 at 06:26
1 answer
September 26th 19 at 06:28
There is access to the particles.vertices, recalculate the coordinates and request an update from the buffer
Quote from the documentation threejs.org/docs/#Reference/Core/Geometry

.vertices
Array of vertices.
The array of vertices holds every position of points in the model.
To signal an update in this array, Geometry.verticesNeedUpdate needs to be set to true.
I do not understand how this access is prescribed... - hyman42 commented on September 26th 19 at 06:31
I just don't see any code examples. The meaning is clear, but how to write it without
concepts. - hyman42 commented on September 26th 19 at 06:34
as an option arm with a debugger and examine the structure of the object particle on an already working example, and somewhere in the bowels of this object there is a field of vertices, good luck! - Wayne.Watsica commented on September 26th 19 at 06:37

Find more questions by tags JavaScriptWebGL