Suggestions for .Net 3D physics engine [closed]

梦想与她 提交于 2020-01-01 09:01:54

问题


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


回答1:


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.




回答2:


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.




回答3:


free or commercial ?

free: jitter, jiglibX, henge3D, bulletX

commercial: bepu physics, matali physics, digitalrune physics




回答4:


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



来源:https://stackoverflow.com/questions/4631505/suggestions-for-net-3d-physics-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!