How do I get bulletphysics/bulletsharps' multithreading working?

百般思念 提交于 2019-12-12 12:41:12

问题


That is to say, what is the minimum set of code I need to set up the BulletSharp physics engine wrappers' "DynamicsWorld" to use "BulletSharp.MultiThreaded.ParallelConstraintSolver"? Alternately, I could probably work it out from the same set of code for the BulletPhysics engine itself.

If I have not phrased the right question, I would appreciate clarification; I only started using it today. (Yes, I have written a quick program using the standard classes).

BulletPhysics is a C++ library; the wrapper is written in C#.

http://bulletphysics.org/wordpress/

http://code.google.com/p/bulletsharp/

Thanks.


回答1:


I haven't personally attempted to get multithreading working yet, but I'd recommend looking at page 42 in the user manual, as it points out where to look for examples. They're in C++, but it should help get you started, at the very least.



来源:https://stackoverflow.com/questions/13096451/how-do-i-get-bulletphysics-bulletsharps-multithreading-working

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