Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  RopeAfterStretchCompression
#12
(02-07-2021, 01:19 PM)alex798 Wrote: As in this thread: http://obi.virtualmethodstudio.com/forum...ghlight=vr , but I can't use LateUpdate(because Grabbed objects moves in Fixed), I hooked to solverEnent(as U suggested), but it didn't help(think that  pulling script calculates Gravity and compensates it, but Rope counts on it), so when I turned off gravity- it stabilized...

I made strainChecker and release and it works pretty good(still prefer some less force, but bearable)...

Updating the input in OnBeginStep should work, as it takes place before any physics (rope or rigidbodies). Using a ObiLateUpdater component is kind of a hacky solution, and the result can be non-physical. Can only really recommend for eye candy stuff.

As a rule of thumb physics must be updated in FixedUpdate(), using a fixed timestep. Use ObiLateUpdater only as a last resort.
Reply


Messages In This Thread
RopeAfterStretchCompression - by alex798 - 02-07-2021, 10:01 AM
RE: RopeAfterStretchCompression - by josemendez - 02-07-2021, 10:40 AM
RE: RopeAfterStretchCompression - by alex798 - 02-07-2021, 11:10 AM
RE: RopeAfterStretchCompression - by josemendez - 02-07-2021, 11:35 AM
RE: RopeAfterStretchCompression - by alex798 - 02-07-2021, 12:32 PM
RE: RopeAfterStretchCompression - by josemendez - 02-07-2021, 12:37 PM
RE: RopeAfterStretchCompression - by alex798 - 02-07-2021, 12:47 PM
RE: RopeAfterStretchCompression - by josemendez - 02-07-2021, 12:51 PM
RE: RopeAfterStretchCompression - by alex798 - 02-07-2021, 01:01 PM
RE: RopeAfterStretchCompression - by josemendez - 02-07-2021, 01:06 PM
RE: RopeAfterStretchCompression - by alex798 - 02-07-2021, 01:19 PM
RE: RopeAfterStretchCompression - by josemendez - 02-07-2021, 01:30 PM
RE: RopeAfterStretchCompression - by alex798 - 02-07-2021, 04:51 PM