Yes, there is a solution, but it's hard for me to repeat this, alas
I admit I was wrong
p.s. I hope you understand the physics engine. I tried to do something, but it didn’t work out for me and I decided not to touch physics.
It is difficult to do, even I had to try few times.
As for the physical engine, I only understand the basics.