Hi! What is the best way to constrain a capsule so that it will not leave the surface of a trianglemesh? I have a small cart object modeled by a capsule, and whenever it rolls over hills even at moderate speed it launches into the air at the peak of the hill. I would love to be able to keep the cart kind of "locked on" to the trainglemesh it is driving on, but also be able to turn this off for ramps that it should jump off of.
I have tried just cranking up a downward Y body force, but this has the effect of slowing the cart down in every direction.
Ideally I would use a constraint, and I could toggle it. I just can't seem to figure it out.
Any help would be greatly appreciated!