对.Net 3D物理引擎的建议
我需要物理引擎来模拟服务器上的游戏世界。我在 google 上搜索了 .Net 物理引擎,它们都在 2006-2009 年发布。那么有什么好的物理引擎可以使用吗?
我需要的引擎是盒子、球体碰撞。
更新:抱歉忘记提及我需要 3d 引擎
更新:如果有人需要托管物理引擎,请查看Jitter,它是纯托管的,由 JigLibX 的开发人员提供
I need physics engine to simulate game world on server. I googled for .Net physics engines and they all were released in 2006-2009. So is there any good physics engine that I can use?
What I need from engine is box, spheres collisions..
Update: sorry forgot to mention i need 3d engine
Update: In case someone will need managed physics engine look at Jitter, it's pure managed and from the developer of JigLibX
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我通过 P/Invoke 使用了非常好的 Newton Game Dynamics。
http://newtondynamics.com/forum/newton.php
还有备受好评的子弹物理引擎,但我从未直接使用过它。不过,看起来相当不错。
http://sourceforge.net/projects/bullet/
您不清楚是否需要纯粹的托管代码引擎,但请注意这些不是。
I've used the very good Newton Game Dynamics via P/Invoke.
http://newtondynamics.com/forum/newton.php
There's also the well-regarded Bullet Physics engine, but I've never used it directly. It looks quite good, though.
http://sourceforge.net/projects/bullet/
You weren't clear if you needed a purely managed code engine, but note these are not.
2d 引擎:
我不久前看过这个: http://farseerphysicals.codeplex.com/
-- 编辑:由于某种原因,我无法自己删除此评论,甚至无法回复评论,所以我将此编辑保留在这里。这个答案是在澄清 3D 要求之前发布的。如果mod想删除这个,请随意。
2d Engine:
I had a look at this a little while ago: http://farseerphysics.codeplex.com/
-- Edit: for some reason I'm unable to delete this comment myself, or even reply to comments, so I leave this edit in here. This answer was posted before the clarification of the requirement for 3D. If a mod wants to delete this, feel free.
免费还是商业?
免费:jitter、jiglibX、henge3D、bulletX
商业:bepu 物理、matali 物理、digitalrune 物理
free or commercial ?
free: jitter, jiglibX, henge3D, bulletX
commercial: bepu physics, matali physics, digitalrune physics
几年前,我为一个大学项目制作了一个
视频
soureforge
代码示例
麻省理工学院许可证
用 C# 原生编写
它有一些限制,正如您对 uni 项目的猜测一样
,例如仅使用凸
包
碰撞检测(使用包围体层次结构)
弹性碰撞
自定义碰撞处理
还支持一些粒子物理和空间查询(k-最近邻)。
它是开源的,所以如果你想添加自己的功能,你可以
I worked on one a few years back for a uni project
video
soureforge
codeexamples
MIT License
Written natively in C#
It has some limitations as you would guess for a uni project
eg only use convex hulls
Features
collision detection (uses bounding volume hierarchy)
elastic collisions
custom collision handling
also supports some particle physics and spatial queries (k-nearest neighbor).
its open source so if you wanted to add your own features to it you could