If you hit a dead corpse, will that person feel pain? The answer is obviosuly no, and this is further proof that the realm of Al-Barzakh is seperate and distinct from our physical world. To quote Shaykh Abdullah Al-Faqîh:
After the soul leaves the body, the corpse does not feel anything. Ibn 'Uyaynah, narrated from Mansoor Ibn Safiyyah from his mother said: "It was said to Ibn 'Umar, that Asamaa', the daughter of Abu Bakr, may Allaah be pleased with all of them, was in one side of the mosque [sad and lamenting] her son Ibn Az-Zubayr
when he was crucified. So he went to her and told her: "These corpses do not suffer anything (i.e. after death), the souls are indeed with Allaah, so fear Allaah and be patient." (IslamWeb)

__________________