Alchemist0823 / three.quarks

Three.quarks is a general purpose particle system / VFX engine for three.js
https://quarks.art
461 stars 20 forks source link

Creating an emitter that emits particles with a velocity #86

Open johnnyrainbow opened 2 weeks ago

johnnyrainbow commented 2 weeks ago

I've noticed that it seems possible to add a gravityForce behaviour to a particle system, but I did not find anything regarding a velocity or acceleration behaviour.

My particular intended use case is I would like to create an emitter can emit particles at a specified vector3 velocity (eg shooting rays from a gun towards a target). If there is another way I can achieve this please let me know! Thank you :)

Alchemist0823 commented 1 week ago

you can shoot a trail particle towards (0,0,1) then rotate the emitter to the direction you want.