Skip to content

Commit

Permalink
Fix sign error in y and z results of Kin.three_torques_to_force()
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWigglesworth authored May 26, 2020
1 parent aa4839b commit d2c34a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions math/Kin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//Inverse Kinematics + Forward Kinematics + supporting functions
//James Wigglesworth
//Started: 6_18_16
//Updated: 1_29_19
//Updated: 5_25_20


/*
Expand Down Expand Up @@ -863,6 +863,8 @@ class Kin{
ForceXYZ = Vector.project_point_onto_line(F[0], lineYZa, lineYZb)
}

ForceXYZ[1] *= -1
ForceXYZ[2] *= -1
return ForceXYZ
}
/*
Expand Down Expand Up @@ -1853,4 +1855,3 @@ Kin.J_angles_to_xyz(Kin.xyz_to_J_angles([0.1, .5, .3]))
*/


0 comments on commit d2c34a5

Please sign in to comment.