Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Fluid Particles interaction Script
#11
(20-11-2020, 01:53 PM)josemendez Wrote: In my case, both blue and yellow particles are killed when in contact with each other. Don't see how it could be otherwise, as diffusion is symmetric: diffusion data is averaged for every particle pair, so if two particles with different diffusion data come in close proximity, they'd both modify their diffusion data, and get removed from the emitter.



This is a compilation error, so it will happen regardless of what scene(s) in the project it is used in. The error says:


So, the compiler can't find a KillParticle() method that accepts a ObiEmitter as argument. The original script is passing an integer (solver.particleToActor[i].indexInActor), thus the only possible way to trigger this error would be to write:

Code:
emitter.KillParticle(emitter);

which ofc does not make any sense. Are you positive that the script isn't modified in any way? Another possibility is that you're using an older version of Obi that does not contain the KillParticle() method.

Obi is aimed at advanced users so it assumes you're familiar with at least basic scripting/programming. If you're not, you have a really steep learning curve ahead :/.


Yup, i was on an older verion... (The proyect i had was in an older version for some reason...) Did a new proyect to try out your code on sample scene (i had deleted the samples scenes on my proyect to save space). Thats why it worked on sample and not on my proyect.. In the new proyect (with the latest version), it dosent appear any fatal error, but it seems to not be killing any particles... Maybe because it dosent have the same names as sample scene?
   
Reply


Messages In This Thread
RE: Fluid Particles interaction Script - by JoseCarlos S - 20-11-2020, 02:31 PM