Can I pause the physics simulation?

I want to make a pause menu in my game that pauses the physics simulation (most of the objects use rigidbodies), but I don’t want to have to see if the game is paused in all the objects and then set their velocities to 0. Plus, if I did that, all the objects would just fall when you resumed. Is there a way to just type something like Physics.pause(); and Physics.resume(); or is there another way to pause the physics simulation? Thank you for your time.

Time.timeScale = 0;

if you got everything in the FixedUpdate then it will stop everything from moving without getting in all scripts.

Then set it back to 1 to get it all moving again.