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

Feedback PhysX 4.0 flag eENABLE_EXTENDED_LIMITS for extended angular limits

Discussion in 'Physics' started by Gooren, Nov 5, 2021.

  1. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    324
    Hi,

    Currently, HingeJoint in Unity allows a maximum limit from -PI to +PI.

    PhysX, however, doubles this limit from a total of PI*2 to a total of PI*4 since version 4.0 with the use of the eENABLE_EXTENDED_LIMITS flag.

    Would that be possible to include in Unity anytime soon? Even as optional setting. This would be incredibly helpful for our project.

    Everything is documented here and here for anyone interested.

    I believe this is mostly a question for @yant ?

    Regards,
    Stepan
     
    Last edited: Nov 5, 2021
    Marcos-Schultz and Edy like this.
  2. Marcos-Schultz

    Marcos-Schultz

    Joined:
    Feb 24, 2014
    Posts:
    381
    It would be great to have that available.
     
  3. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    324
    Bumpity bump I'm sorry Mr. @yant
     
  4. yant

    yant

    Unity Technologies

    Joined:
    Jul 24, 2013
    Posts:
    577
    I believe that should be possible (unless some massive internal stuff depends on it). I'll add this to our tracking sheet, but won't be directly able to say when (if) it becomes available. Thanks!
     
    Gooren likes this.
  5. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    324
    Getting this in Unity 2021 would be lovely, but still, great news! Thanks :)
     
  6. yant

    yant

    Unity Technologies

    Joined:
    Jul 24, 2013
    Posts:
    577
    Yeah, I understand. Just wanted to say that 2021 is a complete thing now. No new features are making it there...
     
    Gooren likes this.
  7. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    324
    Oh, I wasn't aware of that. Thought that 2021.2 can still add features before LTS comes out. No worries then, I will try to skip 2021 and only update to 2022 later :)
     
  8. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,512
    Nope. Features have to land before an internal cut-off and that's during alpha. During beta, only bug fixes are allowed. This has been like this for years and is part of the stability rules. LTS takes it a step further and only allows selective bug fixes to land based upon bug "user-pain" which is an internal metric taking in certain criteria.
     
    JuozasK and Gooren like this.
  9. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    324
    Makes sense. I guess I just hoped for this to land in 2021 for example in the somewhat recurring "Features" or "Improvements" minor version changelog sections. These contain only little things, I know, but I believe/hope this to be a small thing as well.
    Not trying to argue, just explaining my POV from previous comments.
     
    MelvMay likes this.
  10. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,512
    Not a problem, just wanted to explain how it works. Yes, the minor version does include features, improvements and bug fixes but not if it's already out. 2021.1.x or 2021.2.x won't get anything but bug fixes.

    There are two releases a year so 2021.1 and 2021.2 are out so only bug fixes for those an all previous releases. New features go into 2022.1 onwards.
     
    Gooren likes this.
  11. albert-jurkoit

    albert-jurkoit

    Unity Technologies

    Joined:
    Mar 7, 2017
    Posts:
    8
    Hey @Gooren,

    Thanks for bringing this up to us. We have exposed eENABLE_EXTENDED_LIMITS flag. In the Hinge Joint component you will find a checkbox that enables extended limits for a hinge joint. This will be available in Unity 2022.2.0a8 and up.
     
    Gooren and Edy like this.
  12. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    324
    Let me kiss you brother :D You just made my day.
    Extended thanks to @yant for actually putting this into the internal tracking sheet.
    I appreciate this attention to detail!
     
    yant and MelvMay like this.
  13. yant

    yant

    Unity Technologies

    Joined:
    Jul 24, 2013
    Posts:
    577
    Thanks for bring it up here!