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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Does physics entity order influence the deterministic result?

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

  1. lijianfeng


    Sep 8, 2015
    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


    Unity Technologies

    Mar 16, 2005
    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.