How do you simulate a conveyor in bullet physics engine?
Asked Answered
N

1

8

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 outfeed end and grow from the infeed end? Just the names of which bullet classes and methods to use would really help.

Nathalie answered 16/9, 2010 at 1:41 Comment(3)
what language and physics modelling engine might you be using?Brave
C++ but I'm just looking for help navigating the bullet librariesNathalie
@Brave Seems to be bulletphysics ...Lutestring
F
8

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.

Felting answered 17/12, 2010 at 23:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.