Suggestions for .Net 3D physics engine [closed]

2019-04-06 18:35发布

问题:

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