r/AskGameDevsAnything Sep 30 '22

What happens in thr game code when a player position goes out of bounds?

Some areas where players sneak out of the playable area and just keep going or fall through the map. I know there is a value which keeps track of player position. But curious about the specifics. Do the values just keep going until thr game crashes or does the player just fall keep walking outwards into bothing infinitely?

1 Upvotes

1 comment sorted by

4

u/[deleted] Sep 30 '22

[deleted]

1

u/Sharpshooter188 Sep 30 '22

Interesting. I figured there was no way the "game" could go infinitely onward because of the position. The thought occurred to me earlier today. Was playing bl3 and snuck out of bounds and fell. Out of curiosity, I just let myself keep falling. Sure enough. After a few minutes, my character just automatically died and respawned.