- Home /
how to add rigidbody to particles
i want to use particles to represent electrons and protons as they are supposed pull/push each other and collide. i have coded necessary scripts for single rigidbodies but cant apply these scripts to particles.
have can i add rigidbody to particles and control the movement of particles via script?
Answer by Requiem36 · May 24, 2017 at 10:25 AM
You can't add Components to particles. However, you could create a class that would simulate the attraction / repulsion of the atomic particles then update the unity particle's positions.
Answer by Kevz93 · Jul 24, 2017 at 02:08 PM
You could take advantage of the onTrigger callbacks in the particle system. You can kind of 'rewrite' the 'physics' of the particles depending on the interaction. Keeping a global set of rules to follow when the particles enter another collider field.
Your answer
Follow this Question
Related Questions
Particle system increases/decreases in size depending on camera proximity 2 Answers
Particle System UI in Pro vs Free 0 Answers
Particle System(Shuriken) optimization problem 1 Answer
(legacy) Changing color only of new particles 1 Answer
How to make a particle system emit more than 1 particle at once. 1 Answer