| Jason's profileXNA GamerBlogListsNetwork | Help |
|
January 03 Rotating a sprite using an Xbox 360 ThumbStickTook me a little while to find a solution for this problem. But as usual, posting a simple question on the XNA MSDN forums prompted tportz to provide me with a great chunk of code that worked perfectly (so thanks belong to that poster). Here is the code in a nutshell:
Fairly simple chunk of code, but the math part in the middle is pretty much over my head. Thanks again to tportz for providing this simple solution that would have driven me nuts otherwise (and was starting to, which prompted my original post to the MSDN forums). In other news, I will be posting my "Geometry Wars Clone" some day this week, I just need to clean up and better comment the code so it makes sense to others ;) Download source code that contains an example of a triangle sprite that you can freely rotate around in a full circle using the Left ThumbStick of an Xbox 360 controller.
TrackbacksThe trackback URL for this entry is: http://xnagamer.spaces.live.com/blog/cns!EC20BAAE6808B682!139.trak Weblogs that reference this entry
|
|
|