If you “need” to use phat and all of that there isn’t much I can suggest.
However you can still cheat it by moving the actor position when the wall intersects the cube manually.
and you can easily keep the axis back in place with a timeline. It wont/shouldn’t affect the PHat, the motor or anything else either technically speaking.