Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Obi Fluid 3: Obi Solver Modes
#1
Hi,

I am trying to change ObiSolver Component's/ Parameters/ Mode to "2Dmode" or "3Dmode" with different buttons during gameplay. Actually with a script I was able to change it, however it just changes Parameters/ Mode dropdown menu in apparent, it doesn't effect the solver in real. On the other hand, when I try to change it from the Mode - dropdown directly during the gameplay (without script, just mouse click), it works surprisingly. Is there any other method?

This is the code line that I used:

public ObiSolver solver;
solver.GetComponentInParent < ObiSolver> ().parameters.mode = Oni.SolverParameters.Mode.Mode3D;

Thanks for your support (I have sent this via email before, however it may be helpful for others, so I have decided share my problem here, too).
Reply


Messages In This Thread
Obi Fluid 3: Obi Solver Modes - by mimarilker - 21-10-2017, 08:19 PM
RE: Obi Fluid 3: Obi Solver Modes - by mimarilker - 22-10-2017, 07:48 AM
RE: Obi Fluid 3: Obi Solver Modes - by josemendez - 22-10-2017, 12:40 PM
RE: Obi Fluid 3: Obi Solver Modes - by mimarilker - 22-10-2017, 12:48 PM