Sorry if this doesn't really belong here. I'm trying to think at a conceptual level how a physical entity that's controlled by physics, could be controlled using AI. Imagine a top down 2d game where you have a spaceship. It moves and turns by using thrusters facing different directions and placed at different points around the ship. Lets say the ship needs to automatically turn to face an enemy ship to its right. How would the AI know which thrusters to enable in order to rotate in the correct direction? My thoughts were this: 1. When initialising the ship, find it's center of mass 2. loop through all the thrusters on the ship, depending on their rotation and position relative to the center of mass, assign them a flag that says if they're a "left turner". "right turner", "forward thruster" or "back thruster". I suppose in some cases, they could be a turner and a forward/back thruster, or even a "left/right strafer" 3. When the AI detected a nearby ship, if it's on it's right, it will activate all the "right turner" thrusters until it's facing the ship. I wonder if anyone else has designed something similar to this and has any ideas. It's going to be some fairly complex coding, so I'd rather get some input from you guys before diving into it! Cheers.