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. Dismiss Notice

Question Can't connect 2D Joint to another RigidBody?

Discussion in '2D' started by zacharyhunterlund, Jun 11, 2023.

  1. zacharyhunterlund

    zacharyhunterlund

    Joined:
    Mar 7, 2021
    Posts:
    51
    Hello,

    I am trying to create a Distance Joint 2D on a GameObject with a RigidBody2D component. I also have a second RigidBody I am trying to connect to. But when I pull up the menu of RigidBody2D's to connect to, nothing shows up! How do I fix this?

    EDIT: Please disregard this thread. The screenshot is wrong, it shows a Physics Material instead of a RigidBody. Also, I managed to fix it by just dragging the other RigidBody into the right slot.

     
    Last edited: Jun 11, 2023
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,468
    The screenshot clearly shows you selecting a PhysicsMaterial2D not a Rigidbody2D.
     
  3. zacharyhunterlund

    zacharyhunterlund

    Joined:
    Mar 7, 2021
    Posts:
    51
    Oops, my bad!! Also, I solved the problem on my own.
     
    MelvMay likes this.