I would make it immovable relative to the cog/cube, but those have a big difference with a ship:
They are gravity sources.
I suppose I could make some elaborate justification, but even without it "relative to locally dominant gravity source" sounds like a good rule of thumb.