我正在编写一个类似最终幻想的游戏引擎,带有2D背景和带有Irrlicht的3D模型.要计算与背景中对象的碰撞,我使用一个不可见的网格,如下所示:

我已尝试使用此代码,但当播放器到达网格边缘时,它会倒下:
TriangleSelector sel = device.SceneManager.CreateTriangleSelector(Program.field.currentScene.walkmeshLoaded, null);
CollisionResponseSceneNodeAnimator coll = device.SceneManager.CreateCollisionResponseAnimator(sel, playerNode);
playerNode.AddAnimator(coll);
coll.Drop();
sel.Drop();
Run Code Online (Sandbox Code Playgroud) 我正在为Windows 8开发媒体播放器,我需要阅读Windows Media Player媒体库中的所有音乐.
我怎么能在WinRT C#中做到这一点?
谢谢
c# media-player windows-8 windows-runtime windows-store-apps
我需要在C#中做一些钳位.当一个数字达到最大值时它返回到零,当它达到最小值时,它会向后返回最大值.我需要这样做,因为我想要平铺纹理.