Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How to apply an opposite torque on one rigidBody if the other was done with ForceMode.Acceleration ?

Discussion in 'Physics' started by anthonov, May 14, 2020.

  1. anthonov

    anthonov

    Joined:
    Sep 24, 2015
    Posts:
    160
    I have one RigidBody on which I apply an angular acceleration like this :
    rb.addTorque(torque, forcemode.acceleration);
    This rigidbody has a box collider.
    I have another rigidbody with different mass and different collider (so different inertiaTensor), on which I would like to apply the exact opposite equivalent force like this :
    oppositeRB.AddTorque(oppositeTorque, forcemode.force).
    How can I do ?
    Another way to see this problem is : how get the resultant torque of an angular acceleration of a rigidBody ?
     
    Last edited: May 14, 2020