I'm having trouble modeling a conveyor belt for a top-down environment. So, if an object moves onto the belt, it should be moved in the direction of the belt, but all other forces should act on the object as usual.
I can't simply use SetLinearVelocity on the body, because that would ignore any previous velocity the object had. I.e., if the object enters the belt at a high speed, it should retain that high speed, but gradually (due to friction) slow down to the constant speed of the conveyor belt.
This topic seems interesting, but out of date and only meant for side-view conveyor belts.
viewtopic.php?f=3&t=2861
Perhaps this is a more general application of b2FrictionJoint? Instead of friction causing an object to come to rest, it causes the object to approach a certain constant velocity.
Any suggestion are appreciated. I can draw up some diagrams if it's unclear what I'm looking for.
I can't simply use SetLinearVelocity on the body, because that would ignore any previous velocity the object had. I.e., if the object enters the belt at a high speed, it should retain that high speed, but gradually (due to friction) slow down to the constant speed of the conveyor belt.
This topic seems interesting, but out of date and only meant for side-view conveyor belts.
viewtopic.php?f=3&t=2861
Perhaps this is a more general application of b2FrictionJoint? Instead of friction causing an object to come to rest, it causes the object to approach a certain constant velocity.
Any suggestion are appreciated. I can draw up some diagrams if it's unclear what I'm looking for.