Search Unity

How to disable and enable HingeJoint?

Discussion in 'Scripting' started by Trild123787898, Mar 29, 2019.

  1. Trild123787898

    Trild123787898

    Joined:
    Dec 9, 2018
    Posts:
    206
    How to disable and enable HingeJoint? Will this case work in the trigger zone?
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,187
    Since a hingejoint is just a component, you could try to grab that component and disable/enable it. You can have it trigger when you want.
     
  3. Trild123787898

    Trild123787898

    Joined:
    Dec 9, 2018
    Posts:
    206
    Thanks for the answer ! Is there any detailed information?