与XNA相关-如何使用轻拂事件在其中心旋转2D对象 [英] XNA related - How do I rotate a 2D object on it's center using a flick event

查看:70
本文介绍了与XNA相关-如何使用轻拂事件在其中心旋转2D对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是XNA环境的新手,所以我需要很大的帮助.我需要一些示例代码的帮助,该示例代码使我可以使用flick事件旋转对象直到停止.我的意思是,当它应该在其中心旋转并减速时 经过几次旋转后停止播放,具体取决于轻拂事件和小说的速度.不幸的是,我能提出的最好的建议就是不断旋转.

I am new to XNA environment so I need a huge help. I would like some assistance with a sample code that will enable me use a flick event to rotate an object until it comes to a halt. What I mean is that, when it should rotate on it's center and slowing coming to a stop after a few spins depending on the speed of the flick event and fiction. Unfortunately, the best I have been able to come up with is just contant rotation.

推荐答案

 

awsuleiman,

 

Hi awsuleiman,

欢迎来到MSDN论坛!

Welcome to MSDN Forums!

 

我不是XNA专家,并且有一个专门的论坛与许多XNA专家讨论XNA主题问题.您可以在那里问这个问题.以下链接是该论坛的地址. 因此,您可以在那里创建一个新线程,并在离开时关闭该线程.

I'm not a XNA expert, and there's a special forum for discussing the XNA topic problem with lots of XNA experts, so I think you can ask this question there. And the following link is that forum address. So you can create a new thread there and close this thread when you leave.

http://forums.create.msdn.com/forums/32.aspx

 

由于我不是XNA专家,所以我不知道以下主题是否可以为您提供帮助.

Because of I'm not a XNA expert, so I don't know if the following thread can help you.

您可以阅读GCDev的回复.

You can read the reply from GCDev.

 

旋转二维中心点

我认为该主题将对您有帮助.

I think this thread will be helpful to you on this question.

 

如果我的帖子中有任何不清楚或不正确的地方,请随时告诉我.

If there's anything unclear or anything is not right in my post, please feel free to let me know.

 

祝您有美好的一天!

迈克

---------------------------- ---------------------------------------

-------------------------------------------------------------------

请记住点击标记为答案"在对您有帮助的帖子上,并点击取消标记为答案"如果带标记的帖子实际上无法回答您的问题.这可以是 有益于其他社区成员阅读主题.

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to the other community members reading the thread.

******************************** *************************

*****************************************************

[多合一代码框架]

示例世界!您将从这个世界中获得更多!

Sample world! You will get more from this world!

欢迎来到新世界!


这篇关于与XNA相关-如何使用轻拂事件在其中心旋转2D对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆