So right now, I’m trying to create this forklift, which should be able to lift a pallet.
The problem is, everytime I drive under the pallet, lift it up, and drive backwards, it just slides off. I’ve tried changing friction to 0.5, 0.7 and even 1! This does not work…
I’m using transform, to move the forks, and adding force to the forklift’s rigidbody to move the truck itself, if this should have anything to do with it. (?)
Also I’ve changed mass to 7, and drag to 7. Still doesn’t work.
Here’s an image of the rigidbody and box collider for the Pallet.
If you need anymore information, feel free to ask Thank you!
Drag will slow the object down even when it is not in contact with anything, it is often used to simulate the effect of water as it will slow movement in all directions(inc the effect of gravity). 7 is pretty high, so your pallet will not want to move much at all. If you put the pallet in the air it will fall to the ground(via gravity) in a slow and unrealistic way with your current setup. This is something that you have to change.
EDIT : Take a look at my answer to this post, specifically the last small simple script I post in a comment at the and of the answer. This will sort out the jumpiness problem.