Quantcast
Channel: Answers for "Make the turret automatically rotate to look at where the crosshair is aimed at."
Browsing latest articles
Browse All 4 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
Browsing latest articles
Browse All 4 View Live




Latest Images