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. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Articulation Body Visualisation Gizmos

Discussion in 'Physics Previews' started by JuozasK, Jun 21, 2021.

  1. JuozasK

    JuozasK

    Unity Technologies

    Joined:
    Mar 23, 2017
    Posts:
    79
    Hey everyone!

    We’ve made the gizmos use the same tools as are employed by the regular joint editors. That change means visual consistency and an additional bonus in the form of being able to also edit the limits visually -- which was impossible before.

    Revolute/Spherical Joint

    The revolute and spherical joint editor should feel familiar to regular joints, both in style and functionality. You can change the limits for each axis using the relevant handles. Each axis is denoted by a color, the same as regular joints.






    Prismatic Joint

    The prismatic joint editor is new. It shows the upper and lower limits of the joint with a green and red handle respectively.



    For the free prismatic joint type, we just skip drawing the handles and draw the dashed line some distance in both directions



    Anchor Transform Tool

    This tool visualises both the anchor and the parent anchor position/rotation and allows to modify them from the scene view.



    The gizmos will now only show up if the relevant tool is active:



    Left - Joint Limit Tool - view and change Prismatic, Revolute or Spherical joint limits

    Right - Anchor Transform Tool - view and change the positions and rotations of the anchors themselves


    I'd really love to hear your feedback on this change.


    The new visualisations should be available since 2021.2.0a21!
     
    spakment, Sab_Rango, Edy and 2 others like this.
  2. tjmaul

    tjmaul

    Joined:
    Aug 29, 2018
    Posts:
    417
    I really like seeing the articulations workflow improve! Thanks for the update!
     
    JuozasK likes this.
  3. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,470
    Super awesome! Gismos are really useful, especially for beginners. Wish every single argument in configurable join.
     
  4. wsinw

    wsinw

    Joined:
    Apr 23, 2017
    Posts:
    14
    @JuozasK Do these gizmos scale independently of the world scale? i.e. they behave like how the move and rotation gizmos stay a constant size no matter the zoom level. Primarily concerned about the size of the handles, since I work with things in smaller than 30 centimeters in scale.
     
  5. Sab_Rango

    Sab_Rango

    Joined:
    Aug 30, 2019
    Posts:
    121
    Nice Job! I hope this features will be available in DOTS physic versions as well!
     
  6. JuozasK

    JuozasK

    Unity Technologies

    Joined:
    Mar 23, 2017
    Posts:
    79
    Yes they are anchored in screen space, just like the regular joints gizmos. You should be able to work with small articulation bodies no problem!
     
    wsinw likes this.