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 2022.2 beta is now available for testing. To find out what's new, have a look at our 2022.2 feature highlights.
    Dismiss Notice
  3. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
Dismiss Notice
Submit bug reports tagged with #Beta2022Win_Unity when you encounter unknown issues while testing the 2022.2 betas for a chance to win a year of Unity Pro. For more information, have a look at our Beta Sweepstakes Announcement.

Does physics entity order influence the deterministic result?

Discussion in 'DOTS Physics' started by lijianfeng, Oct 15, 2019.

  1. lijianfeng

    lijianfeng

    Joined:
    Sep 8, 2015
    Posts:
    54
    For example :
    I have tow physics world,I add them the same set of rigidbodies,but adding in different order,does the two world get the same result if I then step the world?

    more question:
    I have two physics world, one add some rigidbodies and later remove some of them,leave rigidbody set A,and another I direct aad the rigidbody set A into the world ,does the two world get the same result if I then step the world?
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Yes order affects determinism. Generally speaking all deterministic data needs to live together in an isolated world.
    It would be a bad idea to put any data that is non-deterministic into the same world.

    (Both for the ability to validate determinism & generally because it might reorder entity iteration)
     
    illinar and lijianfeng like this.
unityunity