Best Tutorials website


Rotation using atan2

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: 344 | Rating star | by Stephen




View this tutorial
Broken link Report broken link?