Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding ObiEmmitor gameObject in code
#3
I am trying to make a water gun in Unity for VR. I have managed to make a gun that has an emitter on its barrel. But I have some trouble controlling when it is supposed to be emitting, and when it is supposed to stop. I also tried using two solvers, but I am guessing that is best not to do, it seems extremely demanding for the CPU.

So now I am just using one solver for both my emitters. But I seem to have several problems, the first one being able to control when to emit as I mentioned, but also it does not seem easy to control how this fluid should look. I can change its color, but it always seems to be simple colors without any shaders or they just end up invisible. The faucet water is nice and transparent and such, looking a lot more like fluid, but even though I copied everything it still ends up seeming like its lacking a shader. Am I missing something? I tried different types of fluid. Simple fluid, low res... etc. Not sure if any of those are connected with a shader. I am guessing it has more to do with how the physics of the water behaves or something like that.

I have tried controlling it by setting the emitters speed to 0 if there is a certain amount of particles on the solver or on the emitter, but that also seems to cause problems.
Reply


Messages In This Thread
RE: Adding ObiEmmitor gameObject in code - by Caldor - 28-03-2018, 07:04 AM