Modeling Objects Moving in a Complex Environment with World Automata