Minecarts need to be within a small range of players for gravity to work correctly. Player can be in any gamemode (including spectator, even with gamerule spectatorsGenerateChunks set to false). Unable to replicate in Vanilla. Not only visual, minecarts actually glitch.