Since there is no phcon_setmotor equivalent function in A8 how do we motorize a hinge in A8?

I posted the same question with more detail a week ago here:
A7->A8 Ragdoll Post


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing