Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Setting a joint connectedArticulationBody to null gives an error

Discussion in 'Physics Previews' started by arjanM, Apr 20, 2022.

  1. arjanM

    arjanM

    Joined:
    Oct 4, 2016
    Posts:
    4
    Hi,
    I have a configurable joint that is connected to an articulated body and when I set this to null in a script I get an error.
    Code (CSharp):
    1. joint = GetComponent<FixedJoint>();
    2. joint.connectedArticulationBody = null;
    I get this error:
    A joint can't connect the body to itself


    Is this a bug or is there another way to disconnect the joint from the articulated body?
     
  2. yant

    yant

    Unity Technologies

    Joined:
    Jul 24, 2013
    Posts:
    596
    I think this looks like a legit bug. Would mind reporting a bug on it please? (Via Bug Reporter). It will give you a nice tracking link. Thanks!
     
  3. Hazneliel

    Hazneliel

    Joined:
    Nov 14, 2013
    Posts:
    305
    I am also getting this error, has it been reported? Is there any workaround?
     
    goncalo-vasconcelos likes this.