Andrew Ens

I make games and tech demos.

View My GitHub Profile

7 November 2022

Ship relativity render

by

About

My Ship Crew RPG game is built out of physics sub-environments. This demo shows how you can simulate the movement of arbitrarily complex structures (like planets or ships) by using simple minimodels, and then seamlessly blending the interior and exterior environments together.

Whenever my character is inside the spaceship, the spaceship is not actually moving because all of the parts are anchored. Instead, I cloned the environment and moved it relative to the ship. This is known in physics as “Galilean relativity” and produces an illusion indistinguishable from reality.

Gifs

FlyingFromInterior.gif

The ship isn’t moving – the environment is.

WalkingAroundInterior.gif

You can walk around the inside without any centripetal acceleration or bugginess, even though you’re “moving”.

SwitchingViews.gif

Seamlessly swapping between interior & exterior (minimodel) environments. The minimodel is actually 10x smaller than the full-scale ship interior, and is also at a different position/orientation. Camera magic.

tags: ship crew rpg - technical