1. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  2. Unity 2017.2 beta is now available for download.
    Dismiss Notice
  3. Unity 2017.1 is now released.
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Reddit AMA with Adam Myhill on Cinemachine, Thurs July 27 - 10AM PT. More info.
    Dismiss Notice
  6. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice
  7. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice

Physics issues

Discussion in 'Editor & General Support' started by alex.loren, May 4, 2011.

  1. alex.loren

    alex.loren

    Joined:
    Jan 7, 2011
    Posts:
    83
    On a side project I have been working on, I have recently been getting on a fairly regular basis some issues with the primary physics object getting stuck inside of other objects. Now I have read in quite a few different postings of increasing the fixed timestep, which I have done, but I seem to still have problems with objects getting stuck inside of each other; shown in example with the image below.

    [​IMG]

    Through searching the forums, though I may have over looked something, I have yet to find any real and proven solution to the issue. I have tried adding forces in opposite to where the object is getting stuck, but it results with the object being snapped and thrown from the position, even with minimal forces applied over time.

    I have also taken a look at the article in the Wiki of DontGoThroughThings, and this has seemingly done nothing more to the scene then make the primary physics object behave for erratic, stuttering, and unpredictable.

    So if anyone has had this issue before and reached a resolution, or knows of a few good write-ups worth reading, etc. I would greatly appreciate some insight on the matter, thanks in advance!
     
    Last edited: May 4, 2011
  2. vpdp_pc

    vpdp_pc

    Joined:
    Apr 29, 2011
    Posts:
    3
  3. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    881
    Set the minmum penetration before penalty value to 0
    Set iterations to 100
    Use a really low fixed time step as you've mentioned

    Then tweak these values till you get the desired physics behaviour and acceptable performance
     
  4. alex.loren

    alex.loren

    Joined:
    Jan 7, 2011
    Posts:
    83
    Thank you for pointing out that post, I guess I over looked that post when perusing the thread. I will have to make those changes tomorrow when I am back at my work machine. Thanks again!

    Spinaljack, I will play around with these values a bit more as well to see if I can get the desired results. Thank you as well.