Search Unity

Changing the vector of the force according to the rotation

Discussion in 'Physics' started by danilyo97, May 4, 2016.

  1. danilyo97

    danilyo97

    Joined:
    Mar 31, 2016
    Posts:
    1
    Hi, everyone.

    I've been trying to create some sort of aircraft with two engines.
    Engines and the aircraft are connected with a Hinge Joint, I use torque to rotate them and to roll the whole aircraft.
    But when in the playmode I turn the aircraft 180 degrees, all vectors of the torques are inversed:
    For example, in normals conditions I move the mouse forward to rotate engines forward and if i turn 180 and move the mouse forward again, engines rotate backward.
    The same is with the roll.
    What don't I know about the using torque?

    p.s. attached the script and the package with the aircraft
     

    Attached Files: