23-07-2020, 12:05 PM
(22-07-2020, 06:04 AM)vannorman Wrote: SOLVED: I had to add the following two lines to ObiSphericalForceZone, and now it works.
But I shouldn't need to modify OBI source code for this functionality. It makes me think I have missed some way to get the solver to update these values itself. Please advise if you know what I'm talking about.
Oni.SetParticleExternalForces(actor.solver.OniSolver, actor.solver.wind.GetIntPtr());
Oni.SetParticleWinds(actor.solver.OniSolver, actor.solver.wind.GetIntPtr());
No need to modify the source code at all.
For ambient forces to affect the fluid, you need to crank up the fluid's atmospheric drag. No drag = no wind forces. See:
http://obi.virtualmethodstudio.com/tutor...rials.html