Enable motor in bone's constraint in skeletal mesh

I’m continue to make physics door for my game.

Now I want to make door as skeletal mesh with physics constraint.


How to enable bone’s constraint [1] motor [2] in c++ code?