如何使用C#在XNA中创建墙? [英] How Creat a wall in XNA with C#?

查看:67
本文介绍了如何使用C#在XNA中创建墙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Dears;





我正在编写3D软件并使用Xna。我需要知道这个问题:





如何在XNA中导入3D墙? (我在SolidWork软件中设计了它)



如何检测3D环境中Ball和Wall'元素之间的碰撞?







我很高兴听到你的意见和建议。

真诚的你'' s

Hello Dears;


I''m coding a 3D software and I use Xna. I need know about this Question:


How to import a 3D wall in XNA? (I designed it in SolidWork software)

How to detect collisions between Balls and Wall''s elements in 3D environment?



I''ll be very glad to hear your opinion and suggestions about it.
Sincerely Your''s

推荐答案

Quote:

如何在XNA中导入3D墙? (我在SolidWork软件中设计了它)

How to import a 3D wall in XNA? (I designed it in SolidWork software )



我会 Google [ ^ ]。




I would Google[^] for that.

引用:

如何检测3D环境中Ball和Wall'元素之间的碰撞?

How to detect collisions between Balls and Wall''s elements in 3D environment?



如果3D球从墙上移动的距离小于或等于其半径,则3D球与墙碰撞。例如,对于X位置的墙 xWall ,您必须检查无限 YZ 尺寸:


A 3D ball collides with a wall if its dinstance from the wall is less than or equal to its radius. For instance for a wall at X position xWall, with infinite Y-Z dimensions you have to check:

|xBall - xWall| <= rBall


这篇关于如何使用C#在XNA中创建墙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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