Now that we have an understanding of the majority of features of the Unity Physics Engine, we can cover several optimization techniques to improve our game's physics performance.
Firstly, there are a number of best practices we can apply to our Scenes to improve consistency of the physics simulation. Note that several of these techniques will not necessarily improve CPU or memory usage, but they will result in a reduced likelihood of instability from the Physics Engine.
We should try to keep all physics object scales in the world as close to (1,1,1)
as we possibly can. By default, Unity assumes that we are trying to simulate gameplay equivalent to being on the surface of the Earth. The force of gravity at the surface of the Earth is 9.81 meters-per-second-squared, and hence the default gravity value is set to -9.81
to match. 1 unit in Unity's world space is equivalent to 1 meter, and the negative sign means that it will pull the object downward...