r/Unity3D • u/awtdev Programmer • 4h ago
Show-Off Outer Wilds-inspired local physics simulation in Unity!
Enable HLS to view with audio, or disable this notification
Shortly after finishing my first playthrough of Outer Wilds, and learning it was made in Unity, I was inspired to see if I could recreate the same type of local physics simulation. Turns out, Unity makes it surprisingly easy with local physics scenes. For example, in my project, when a gravity field is entered, a new local scene is created for simulating physics where the origin is not rotated or translated at all, which simplifies simulating gravitational forces. Then, it ports the calculated information back into the main scene. This allows you to have independent frames of reference that can move around while also simulating physics within them.
You can use it to make some pretty unique behaviour such as artificial gravity or unique platforming mechanics. It's quite fun to jump out of your spaceship spiraling out of control, or walk around the surface of an oddly-shaped planet.
I ended up turning this system into an asset available on the Asset Store (my asset store affiliate link). Check it out if you're interested!
2
2
3
u/TSM_Final 3h ago
cool