我如何使Bulletphysics/bulletsharps的多线程工作? [英] How do I get bulletphysics/bulletsharps' multithreading working?

查看:230
本文介绍了我如何使Bulletphysics/bulletsharps的多线程工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也就是说,设置BulletSharp物理引擎包装器的"DynamicsWorld"以使用"BulletSharp.MultiThreaded.ParallelConstraintSolver"需要的最少代码集是什么?另外,我可能可以从BulletPhysics引擎本身的同一组代码中得出结果.

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是一个C ++库;包装器是用C#编写的.

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

http://bulletphysics.org/wordpress/

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

谢谢.

推荐答案

我还没有亲自尝试过多线程工作,但是我建议您查看

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.

这篇关于我如何使Bulletphysics/bulletsharps的多线程工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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