Changing just the Physics timescale

Is it possible to change just the Physics timeScale? I want to just speed up the Physics and nothing else, so Time.timeScale is not an option.

Change Time.timeScale for configuring the physics time scale, then use Time.unscaledTime and Time.unscaledDeltaTime everywhere else for realtime speed.

This is not a great solution, perhaps one doesn’t exist, but it’s not reasonable for a developer to go through every piece of code in a game including third-party code and change out time for unscaledtime in the appropriate places.

That was the solution available at that time (2016). Now (2021) you can turn off automatic physics updates with Physics.autoSimulation and then manually invoke the physics updates by calling Physics.Simulate() at any custom-defined rate.

2 Likes