开发者

How do you simulate a conveyor in bullet physics engine?

I am writing a simulation in which we need some boxes to be fairly accurately modeled as they move on a set of conveyors. Currently we detect if the box is colliding with the static conveyor surface and apply an impulse to each box according to what the conveyor speed is supposed to be. Is there a way to make the actual conveyor surface move and have it either wrap around or kind of dissolve on the outfee开发者_如何学编程d end and grow from the infeed end? Just the names of which bullet classes and methods to use would really help.


You can use special friction mode, with a target velocity and direction to simulate a conveyor.

See http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&p=21441#p21441 for a working demo and implementation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜