90% of the action in my game occurs off-screen, and for efficiency's sake I calculate all of it (NPC movement, economy, random badger-mole attacks) in a simulation module, and selectively spawn in NPCs and render level geometry in the player's vicinity as visual representations of what's going on in the simulator. This is highly efficient and lets me convincingly simulate a living world with thousands of characters, but I'm running into some problems getting the level geometry and the...
Connecting objects in simulation with their in-game representations
Connecting objects in simulation with their in-game representations