Search Unity

Kinematic Rigidbody2D don't moves with parent gameobject

Discussion in '2D' started by hea, Nov 15, 2013.

  1. hea

    hea

    Joined:
    Jan 14, 2013
    Posts:
    8
    Hello!
    3D analogue of rigidbody2d with "isKinematic" moves when parent gameobject in moving but rigidbody2d doesn't.
    It is by design, or a bug?
     
  2. unitylover

    unitylover

    Joined:
    Jul 6, 2013
    Posts:
    346
    Sounds like a bug on your end, although you might experience some weird results if you're mixing 2d physics and 3d physics. Can we have a screenshot of your hierarchy and inspector properties? Need to see how you've set everything up before a real answer can be given.
     
  3. SandwichDev

    SandwichDev

    Joined:
    Nov 16, 2013
    Posts:
    2
    I was seeing a similar problem. The issue for me was simply that the child object had a kinematic Rigidbody2D on it. Once I removed that it all worked.

    In 3D I had child objects as trigger colliders + kinematic rigidbody which worked fine as a child of another physics object, but in 2D this doesn't seem to work. Hope this fixes it for you as well.
     
  4. hea

    hea

    Joined:
    Jan 14, 2013
    Posts:
    8
    Yep, this is a similar problem of Unity 2d physics. It was a rigidbody2d droppable object - children of rigidbody2d playercharacter in my case.