Skip to content
Snippets Groups Projects
Commit ca044122 authored by Raphael's avatar Raphael
Browse files

fix actuateNodeVel (will not move anymore if a 0 vel is set)

parent 93efa0f5
No related branches found
No related tags found
No related merge requests found
......@@ -211,6 +211,12 @@ namespace SimDynamics
// target.jointValueTarget = oldTargetIt->second.jointValueTarget;
// }
// else
if(std::abs(jointVelocity) < 1e-10)
{
//do not move
target.jointValueTarget = oldTargetIt->second.jointValueTarget;
}
else
{
target.jointValueTarget = node->getJointValue();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment