Search Unity

How to set reaction torque at hinge joint

Discussion in 'Scripting' started by takuaki, Oct 25, 2021.

  1. takuaki

    takuaki

    Joined:
    Oct 25, 2021
    Posts:
    2
    Hello.

    As shown in the figure, Link 1 and Link 2 are connected by a hinge joint.
    I would like to write a script that when torque is applied around the Joint of Link 2, a reaction torque is applied to Link 1.

    Question_ReactionTorque.png

    Currently, I have tried AddRelativeTorque of C# Script, but the force only acts on Link 2 and not on Link 1.
    There is also a motor function, but I would like to operate it at the acceleration level without setting a target speed.

    If you have a solution, please let me know.