How to set needle position without active force? #28
Replies: 3 comments 2 replies
-
I found a solution like this: Adding zero force to the object after setting position: time.sleep(1) # wait for needle to move to position
needle.set_force(0, 0, 0)
needle.set_torque(0, 0, 0) The needle will be moved to the desired position. But the position of the thread seems to be random. But this solution is good to me for now. |
Beta Was this translation helpful? Give feedback.
-
Hello Hongbin, Alternatively, we can implement a way to reset the simulation using the scripts if that is something that you are interested in. |
Beta Was this translation helpful? Give feedback.
-
Hi Hongbin, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi adnan,
I write a script to reset the needle to original position:
But I found it hover in the air, which seems like applying force to pin the needle in the specified position.
How could disable the force or is there any other method to reset the needle by python code?
Beta Was this translation helpful? Give feedback.
All reactions