Quantcast
Channel: Answers for "Turret Rotation on a moving object with rotation limits"
Browsing all 6 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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

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 Article

Answer 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 Article


Answer 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
Browsing all 6 articles
Browse latest View live




Latest Images