How to simulate a suction cup? I am trying to model a suction cup in Blender 2.75a. I don't know where to get started. More specifically here is what I want to do:


Create a suction cup/pad that can stick to vertical walls.
Control the sticking of that pad on a vertical surface via game engine.


I am doing this to model a hook onto which I want to hang a cube (a simple pendulum in my case) which has some mass. And yes I want to do it via a suction pad only.

Update 1

On EpicM's suggestion, I tried modelling it as a cloth using rubber material. But that didn't work out. Using soft body seems to work fine. But the main concern now is how to vary the air pressure inside the cup so as to control when to stick and when to release.I am new to blender and hence have no experience using scripts. An example will be very helpful.
EDIT: Completely rewrote this answer, as I found a much better solution.


Basically you can connect two rigid bodies then keyframe their connection to decide when to turn it on or off.

Here's how:
After you set up your rigid bodies, select your cube, then your suction cup object, then connect the two using the physics tab. This will constrain the cube to the cup in a rigid body responsive manner (unlike ordinary constraints that make a mess).


Then all you need to do is to select the empty that represents the relationship between the two objects, and animate the "enabled" property on the constraint.



I guess you'll just have to figure out the rest about implementing this in BGE (which enables dynamically controlling animations).

Blendfile.