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

3D object with a 2D child?

Discussion in 'Physics' started by Flybye, Nov 14, 2015.

  1. Flybye

    Flybye

    Joined:
    Mar 25, 2015
    Posts:
    100
    So I made a simple segmented tall box with bones in Maya and imported to Unity to test it as a rope. This "rope" acts like a rope when I play the scene. I have it hanging, I move the lower bone, it swings, etc,

    I attached an empty 2d game object to the last bone as a child, and then I hinged a sprite with collider to that 2d game object.

    So when I play, if I swing that last bone the sprite swings with it. If I collide with the sprite with a 2d charater, it moves the sprite but doesnt drag the 3d rope with it. Would anyone be able to explain why?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    2D physics and 3D physics are separate engines and don't interact.

    --Eric
     
  3. Flybye

    Flybye

    Joined:
    Mar 25, 2015
    Posts:
    100
    Yes, that I understand, but Im trying to make a 2d object interact with a 2d object that is the child of a 3d object. If I swing the 3d object it swings the child 2d object with it.

    Ive read other people mention this a while back, but Ive never seen it operational. So I was wondering if this 2d child to a 3d object is something valid. And if so then why does moving the child 2d object not move the 3d object, but if I move the 3d object it DOES move the 2d child with it.