31-03-2021, 11:23 AM
(This post was last modified: 31-03-2021, 11:25 AM by josemendez.)
(31-03-2021, 11:17 AM)darthmerth Wrote: Is there a way to change Solver parameters in runtime, via script ? I tried making two Solvers and changing the rope's solver but that's not possible either.
Yes and yes. You can change any parameters like this:
Code:
solver.parameters.gravity = <your gravity>
solver.PushSolverParameters();
Same for all damping, and all other parameters.
Also, you can move actors to a new solver just by reparenting them:
Code:
actor.transform.parent = <new solver transform>