Quantcast
Channel: Answers for "Make the turret automatically rotate to look at where the crosshair is aimed at."
Browsing all 4 articles
Browse latest View live

Answer by robertbu

I'm not exactly sure what you want from your description, but here are two scripts that combined will have a gun on a turret pointing at a specified game object. As the game object moves, it will track...

View Article


Answer by DarthDisembowel

Here's some C# code I use for spaceship turrets. I feel this could be simplified a bit but I was never able to get it to work without saving the local rotation and reapplying them to the axes I don't...

View Article

Answer by robertbu

I'm not exactly sure what you want from your description, but here are two scripts that combined will have a gun on a turret pointing at a specified game object. As the game object moves, it will track...

View Article

Answer by DarthDisembowel

Here's some C# code I use for spaceship turrets. I feel this could be simplified a bit but I was never able to get it to work without saving the local rotation and reapplying them to the axes I don't...

View Article
Browsing all 4 articles
Browse latest View live