2 ms·
I suspect the answer can be found in how more general physics engines work. https://en.wikipedia.org/wiki/Physics_engine https://en.wikipedia.org/wiki/Physics_
by amelius 6y ago
I suspect the answer can be found in how more general physics engines work.
https://en.wikipedia.org/wiki/Physics_engine https://en.wikipedia.org/wiki/Physics_engine
- tgb 6y agoI'm imagining a discrete system here, like a tile-based map. I haven't actually played Factorio, so I'm just assuming that's how it works (seems like it from the link a sibling post gave). As such, I'm not sure physics engine share much in common here.
- duskwuff 6y agoIt's not as simple as a tile-based map. Structures are built on a square tile grid, but objects on belts move at a much finer resolution, and have a bunch of specific behaviors (moving in two lanes, being picked up or dropped onto belts by inserters, belts merging into other belts, etc). Older versions of the game actually used an even more flexible physics engine for objects on belt (not restricted to two lanes), but that was deemed unnecessarily complex -- and the current model is much more performant.