webots icon indicating copy to clipboard operation
webots copied to clipboard

addTorque and addForce are doing the same

Open Jay-Song opened this issue 2 years ago • 2 comments

to whom it may concern,

I made two simple boxes attached by a hinge joint and applied a torque to one box.

But, the box was not rotating and just moved in the direction of the torque I gave.

I tested addForce but it showed the same result.

I think addTorque and addForce are using the same code or there is some problem in distinguishing addForce and addTorque.

Thanks.

Jay-Song avatar Jul 27 '23 03:07 Jay-Song

He is right, I think this demonstrate his point (two box link with a hingejoint, on which we apply a force, should not move)

test_torque_force.zip

ShuffleWire avatar Jul 27 '23 07:07 ShuffleWire

box_test.zip

Here is what I tested.

Jay-Song avatar Jul 27 '23 12:07 Jay-Song