3 dimensional torque from angular velocity
Each bar is represented by a vector. If you have the rotation matrix to multiply it by the vector of unfixed bar to become parallel the fix one, isn't your problem solve then? If so, I will explain how to construct the matrix from the two vectors.
