Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Open Physics Samples, Joints parade bug (maybe two)

Discussion in 'Physics for ECS' started by Vladimir-Borodin, Feb 4, 2020.

  1. Vladimir-Borodin

    Vladimir-Borodin

    Joined:
    Jun 1, 2017
    Posts:
    15
    Can't find issue tracker for Unity Physics, so I post this here.

    1. Entities connected with joint switch their positions.
    Steps to reproduce:
    1. Find Rigid1 at bottom of hierarchy and change it's mesh to sphere.
    2. Hit play. See attached image.


    When RigidJoint script on Rigid1 is disabled, switch doesn't happen.

    2. Rotation impulse when Rigid1 is rotated
    Steps to reproduce:
    1. Change Rigid1 position.y to -1.5 and rotation.x to -30 (via editor)
    2. Hit play. Joined entities get rotation impulse.
     
    steveeHavok likes this.
  2. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
    Thanks for posting, I'll take a lock. I suspect the connected offsets are back to front. Note, that the next release of Unity Physics will include support for conversion of the legacy joints in the same way that the legacy colliders can be converted currently.
     
    Vladimir-Borodin likes this.
  3. Vladimir-Borodin

    Vladimir-Borodin

    Joined:
    Jun 1, 2017
    Posts:
    15
    @steveeHavok thanks for reply.
    Yes, I rechecked it and seems the issue is related to code under AutoSetConnected flag. If it is not raised and joint's values are set correctly, everything works fine.
     
    steveeHavok likes this.