I have a component based architecture game engine with different subsystems, which do different things. Now I have the boiler plate partly finished, and I think about the next things to do.
I have an object in my scene manager. This object needs to be moved automatically. Now I think about a system with the task to manage all waypoints. This system needs to have two arrays, one with the waypoints, and one save each connection to another waypoint. If this object need to move, I send a message to the ai system, which set the new destination waypoint, and then the ai system sends a message to the pathfinding system (is this a seperate system or combined with the position system, or with the ai system?) which calcs the way to the waypoint, and if finished sends a message to the position system, which moves the object at the right speed.
Now I would like to hear other opinions. Is this a good way? How do other people do this? I think this is a common term in game programming, so there are quite much ways to do this. Maybe this way is a little bit overcomplicated, are there simpler ways?
Thank you
Dominik