Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Independent Timescale
#2
(07-08-2017, 08:27 PM)momothemonster Wrote: Is there a way to make Obi Rope use an independent timescale? I'm slowing down Timescale in my game for a slow-motion effect but I want my rope to continue resolving at full-speed. Thanks!

Hi!

The simulation step for the solver is done by solver.SimulateStep(deltaTime); This is usually called in FixedUpdate(), WaitForFixedUpdate() or LateUpdate(), depending on your solver settings. 

If you're using the default settings (FixedUpdate) then you can slightly modify ObiSolver.cs to achieve what you want: In its FixedUpdate() method, instead of passing Time.fixedDeltaTime to SimulateStep(), pass your own custom delta time.

cheers!
Reply


Messages In This Thread
Independent Timescale - by momothemonster - 07-08-2017, 08:27 PM
RE: Independent Timescale - by josemendez - 07-08-2017, 08:51 PM
RE: Independent Timescale - by momothemonster - 07-08-2017, 09:41 PM