Gravity Files Remake Code [2021] Info
The remake code implements Sleeping Graphs . When gravity is stable, the engine groups static objects (walls, floors, inactive crates) into a single collision mesh. The moment a gravity shift is queued, the code "wakes up" the graph, separates the meshes, and applies individual rigidbody forces. This allows for 4K resolution and 120 FPS even on mid-range hardware.
Camera.Transform.rotation *= targetRotation; gravity files remake code
updateUI();
Check the repo for the full breakdown of the physics controller logic. The remake code implements Sleeping Graphs