I am working on a robotic arm pick-up and place project. I use a haptic device to control the robotic arm. While the robotic arm picks an object, I want to apply the gravitational pull force to the haptic device. The gravitational pull is the force that grabbed object is accelerating down. The simulation needs to be as realistic as possible. So gravity should be applied when an object is lifted from one side while the other side is still on earth.
I want to apply less force when the other side is still on the ground and full force when it is fully lifted. So far I could not be able to find a way to do this.
My idea is to attach a script to every grabbable object and calculate its gravity force while grabbing. Then I can apply the force to the haptic device to give a feeling of the object pick-up. So far I could not do that.
Any idea? How can I do that?
