a torque is applied to knee joint in zero gravity (simbicon simulation)

how can i do this in box2d? as far i understand i shouldn't apply torque to bone, since it would be applied to center of mass, and it's not a joint motor, because he would rotate bones around joint center, so... i'm a little confused here