Hey,
I need to make joint to rotate in reverse direction, any documentation or API function(regulary API). I went through I did not find any API so.
Any solution
Thanks
How to make the joint to rotation in reverse direction?
Re: How to make the joint to rotation in reverse direction?
Sloved. Thank you
-
- Posts: 19
- Joined: 30 Dec 2020, 15:32
Re: How to make the joint to rotation in reverse direction?
Can you share how you solved it?
Re: How to make the joint to rotation in reverse direction?
If your joint is in force/torque mode, the motor enabled, then simply do:
Cheers
Code: Select all
sim.setJointTargetVelocity(jointHandle,vel) -- forward
sim.setJointTargetVelocity(jointHandle,-vel) -- reverse
-
- Posts: 19
- Joined: 30 Dec 2020, 15:32
Re: How to make the joint to rotation in reverse direction?
For revolute joint,if I put 10,will it be 10 rad/s or 10 degree/s?
Re: How to make the joint to rotation in reverse direction?
the API uses rad, the GUI uses degrees!
Cheers
Cheers