Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tear Issue
#8
(27-04-2022, 03:49 PM)charlotte Wrote: Im actually creating the solver and cloth through scripting, not from editor. How can i add that new solver to affected solvers list of the wind?

You can do it like this:

Code:
ambientForceZone.enabled = false;
ambientForceZone.affectedSolvers = new ObiSolver[]{yourSolvers};
ambientForceZone.enabled = true;

Note it is necessary to disable/then reenable the force zone because the list of solvers is only updated in OnEnable().

kind regards,
Reply


Messages In This Thread
Tear Issue - by charlotte - 26-04-2022, 03:54 PM
RE: Tear Issue - by josemendez - 27-04-2022, 07:42 AM
RE: Tear Issue - by charlotte - 27-04-2022, 09:10 AM
RE: Tear Issue - by josemendez - 27-04-2022, 09:12 AM
RE: Tear Issue - by charlotte - 27-04-2022, 03:25 PM
RE: Tear Issue - by josemendez - 27-04-2022, 03:46 PM
RE: Tear Issue - by charlotte - 27-04-2022, 03:49 PM
RE: Tear Issue - by josemendez - 27-04-2022, 04:08 PM
RE: Tear Issue - by charlotte - 29-04-2022, 12:22 PM