In the game engine, my object needs to point at a target. How can I get it to aim at something that is constantly moving in unpredictable patterns? The constraints actuator does not have a "track to" that I can see however the 'track to' is exactly the effect I want. I'm using v. 2.71.
Ok. got i figured out. i just needed to use the "edit object" actuator and change it to track.
I was trying to create a gun that aimed at a moving object, which, in my case was cross-hairs that moved with my mouse. The problem I encountered was that when I added a 'Track To' object constraint to my gun, it would work in object or edit mode. However, when the game went into run-time, the object would stay immobile rather than tracking to my cursor as it had before.
The solution was removing the object constraint under the properties panel, and adding an 'Edit Object' actuator to the gun, changing the type to 'Track To'and selecting the cross-hairs as the target object.
Afterword, enabling '3D' tracking allowed my weapon to follow the cursor even above the 2-dimensional plane it was on.