02-07-2021, 01:30 PM
(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.