![Best Tutorials website](/images/logo.jpg)
![Rotation using atan2](/uploads/24772.jpg)
Rotation using atan2
In this tutorial, I'm going to show you how to program the tank rifle so that it changes its rotation according to where your mouse is. It's good to know the little piece of code that makes the effect possible since it comes in really handy in many kinds of Flash applications, mostly in games, but not only.
Views: 355 |
| by Stephen
View this tutorial
![Popular tutorials](/images/img_popular.gif)
Most popular (last 7 days)
![Ciara forum signature](/uploads/28745.gif)
![Water in Cinema 4D](/uploads/23582.jpg)
![Hologram](/uploads/26797.jpg)
![Star Wars Hailfire Droid](/uploads/33296.gif)
![Create a computer case model](/uploads/29018.jpg)
Highest rated (last 7 days)
![CSS graphic menu with rollovers](/uploads/29378.jpg)
![XP Style Beaker Icon](/uploads/12288.jpg)
![Hulk Text](/uploads/11195.jpg)
![Psychedelic logo](/uploads/10198.jpg)
![Word Game](/images/picture.gif)