You can achieve this by using copy loc constrains and tracking. I made an example file that I should be able to upload tomorrow, so I’ll post the link here then.
my solution only works if the turret sits on one of the major plane (XoY, XoZ, YoZ), but I will try to make a script that could work on all the planes.
I downloaded theeth’s file and I noticed that the “header” for the Track_Loc for the first ‘Copy Location’ constraint (OB: Cube) is displayed in red. This happens in both Blender versions 2.23 and 2.25 . What would be causing this? I thought that this usually indicated an error such as a cyclical reference or something.
thanks for telling me, I didn’t notice it before. Well, that constraint was to make sure that the Empty would stay on the same level as the tracking object, but you can fix that by parenting the empty to the base.
i was wondering one thing that is not greatly important but would “ice the cake”.
is there a way to modify the plugin so that the turret could rotate around a random axis.
currently the empty thats the turret base is tracking moves on the horizontal plane.
i was wondering if there is a way that the empty can rotate around a plane that gets its angle from the object it beongs to. (the tripod/tank/ground etc)
so that in an animation of a moving object that is going up a hill the turret will be correct in relation to this.
just wondering, it is not that important and i am not sure how hard it is to do this so if its difficult then don’t do it (unless you like a challenge)