How do I add forces for the specific sprites of a particle?
There is a particle consisting of 40 pictures my effect. how I may call it the addforce method they the particle onto pictures forming an effect what collide with a thrower weapon?
I want a smoke into which if I throw a thrower weapon, an airflow to which rise was given with the thrower weapon then into it blows out the single part of the smoke.
Comment
$$anonymous$$ondatokban leírva az algoritmus valahogy így néz ki:
particle[] particles; Rigidbody2d shuriken; Vector3 forcedir; float radius = 10; if(if the thrower weapon collide with smoke particle) { particles = GetParticlesInCírcleradius(radius); Vector3 dir = shuriken.velocity; dir.normalized; for(int i = 0; i < particles.Length; ++i) { particles[i].Addforce(forcedir * 50); } }