Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Passing Through Collider?
#6
(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>
Reply


Messages In This Thread
Passing Through Collider? - by darthmerth - 31-03-2021, 08:38 AM
RE: Passing Through Collider? - by josemendez - 31-03-2021, 09:52 AM
RE: Passing Through Collider? - by darthmerth - 31-03-2021, 10:45 AM
RE: Passing Through Collider? - by josemendez - 31-03-2021, 10:51 AM
RE: Passing Through Collider? - by darthmerth - 31-03-2021, 11:17 AM
RE: Passing Through Collider? - by josemendez - 31-03-2021, 11:23 AM
RE: Passing Through Collider? - by darthmerth - 31-03-2021, 11:27 AM