myogen.simulator.core.force.JointBiomechanics.compute_joint_torque# JointBiomechanics.compute_joint_torque( muscle_forces__N: float | ndarray, joint_angle__deg: float, ) → float[source]# Compute net joint torque from muscle forces. Parameters: muscle_forces__N (float or np.ndarray) – Forces from each muscle in Newtons. If float, assumes single muscle. If array, must have length equal to n_muscles. joint_angle__deg (float) – Current joint angle in degrees. Returns: Net joint torque in N⋅cm. Return type: float Notes Positive torque indicates rotation in the positive joint angle direction.