2 Part Turret Rotation to Look at Target
Hi, I have a Turret split into 2 pieces (Turret (yaw), and RotatorObj(roll)), I'm trying to get them to reliably rotate to look at the target they're shooting at anywhere in 3d space, my current solutions rotations comes close most of the time but not every time, the LineTrace always points to the correct location. Can anyone help me get this working better?
Project Example: http://i.imgur.com/XhLfAUz.jpg
I'm not worried just yet about clamping angles, just that it reliably looks where it's supposed to. In short, how do I get my rotations to correctly line up with the Line Trace in every case? Thanks for any help.
Follow this question
Once you sign in you will be able to subscribe for any updates here