Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feedback Should ObiAmbientForceZone take into account isVisible and simulateWhenInvisible?
#1
Pregunta 
I was just wondering if ObiAmbientForceZone couldnt be improved to not do any computation for the solvers that have been marked as "dont simulate when not visible"?

Solver_OnStepBegin could exit early for instance.

I could certainly make the changes myself, but just wanted to see if that made sense.
Reply
#2
(08-04-2022, 10:06 PM)niuage Wrote: I was just wondering if ObiAmbientForceZone couldnt be improved to not do any computation for the solvers that have been marked as "dont simulate when not visible"?

Solver_OnStepBegin could exit early for instance.

I could certainly make the changes myself, but just wanted to see if that made sense.

Hi!

Yes, you could certainly skip the loop over all particles if the solver is not visible. I can't think of any reason not to do this, so will probably add this by default on future updates.
Reply