Skip to content

Commit

Permalink
Fix incorrect multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed May 15, 2024
1 parent 9a2b6b6 commit 7e4dc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/example/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ viewer.addEventListener('urdf-processed', () => {
});

input.addEventListener('change', () => {
const degMultiplier = radiansToggle.classList.contains('checked') ? 1.0 : RAD2DEG;
const degMultiplier = radiansToggle.classList.contains('checked') ? 1.0 : DEG2RAD;
viewer.setJointValue(joint.name, input.value * degMultiplier);
li.update();
});
Expand Down

0 comments on commit 7e4dc2e

Please sign in to comment.