↧
Answer by robertbu
Here is a script that gets you most of the way there. There some unknowns in your question, so I expect you'll have a few changes, but I believe all the heavy lifting is done. #pragma strict var target...
View ArticleAnswer by sevensixtytwo
You can use just one segment of code from robertbu's answer. Here: var toTarget : Quaternion = Quaternion.LookRotation(target.position - turret.position, turret.up); transform.rotation =...
View ArticleAnswer by Epitaph778
After attempting the solutions in the answers provided, I eventually came upon a working solution. Since the code was functional for turn movement and pitch movement individually, I calculated the...
View Article