rigidbody velocity changes rapidly(fly) after change timescale
in the moment changing timescale, if physics object collide other object, that object fly....
ragdool, physics object fly strangely
please look at below video
in the moment changing timescale, if physics object collide other object, that object fly....
ragdool, physics object fly strangely
please look at below video
setting interpolate, changing fixedDeltaTime, rigidbody sleep, chaning timescale smoothly \ didn't work for this problem
private void SetTimeScale(float timeScale) { Time.timeScale = timeScale; Time.fixedDeltaTime = Time.timeScale * 0.02f; }
Answer by Edy · Jun 21, 2020 at 10:21 AM
Configure timeScale only and leave fixedDeltaTime untouched. That's the correct way of modifying the time scale.
Also, ensure that all your code that modifies physics properties is executed inside FixedUpdate, not in Update.
FixedDeltaTime shouldn't change unless you need the physics calculations to update at specific rates, and in that case it's typically modified in Project Settings > Time. This is not related with time scale. Changing fixedDeltaTime as in that code is surely causing weird effects. If adverse effects persist after leaving fixedDeltaTime untouched, then there's something else wrong in other parts of your proyect and/or code.
yeah it works, but i'm using s$$anonymous$$mvr plugin. in that plugin, fixeddeltatime is set related to tiemscale every update, so i can't leave fixeddeltime