IdeaSpaceVR / aframe-particle-system-component

Particle systems for A-Frame.
https://ideaspacevr.github.io/aframe-particle-system-component/
MIT License
228 stars 69 forks source link

Animating the emitter also animates the particles #17

Open andybak opened 7 years ago

andybak commented 7 years ago

I was trying the standard "object leaves a trail of particles" effect but found that the particles were rendered relative to the emitter - even if the emitter moved - rather than keeping their own position and velocity in world space.

Is this a limitation of the underlying three.js library?

weddingdj commented 7 years ago

Good question, but I don't have an answer to it. Maybe you could ask your question on the particle engine page https://github.com/squarefeet/ShaderParticleEngine . I just created a component for a-frame using that particle engine.

Vamoss commented 6 years ago

particlesEl.components['particle-system'].particleGroup.emitters[0].position.value = new THREE.Vector3(1, 2, 3);