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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Access "FixedJoint" from another script/object?

Discussion in 'Scripting' started by emulo2, Dec 11, 2015.

  1. emulo2

    emulo2

    Joined:
    Apr 15, 2015
    Posts:
    21
    Hey guys!


    I have a problem because I must spawn an object on my player and not on my controller (tracked controller / unet). I don`t know how to pick up the FixedJoint from another script.


    Player -> Script A (creates a FixedJoint with Obj A and Obj B)

    Controller -> Script B -> Find the FixedJoint and can destroy/work with them


    Is this possible? I do not understand how i can find the FixedJoint….


    I hope you can help me
     
  2. emulo2

    emulo2

    Joined:
    Apr 15, 2015
    Posts:
    21
    Now it works...

    But: If i destroy the Joint, the object only falls to the ground :(. It will not take the throwenergy...