Override physics simulation of skeletal mesh (How to control Physics Asset's Hinge Joint by code)


I trying to code a mechanical arm that needs to react to my world “physically correct”. However, I need to simulate things like, if the arm touch the floor and force it, it should elevate the structure.

Something like this picture:


I tried using the transform bone from animation blueprint, but it doesn’t override the physics simulation.


Or in other words, can I control the Hinge Joint from a Physics Asset by code and simulate the physics at the same time?

Any ideas?