Physics during robot movement

When I move joints using setPosition() method, for example, to make my humanoid robot take a seat, it hangs in the air while setPosition() method called and then it falls down. It looks like there is no gravity, or like animation and physics can not run together.