Search Unity

Question regarding DOTS Physics compatibility with Unity 2021.1

Discussion in 'Physics for ECS' started by Baggers_, Apr 18, 2021.

  1. Baggers_

    Baggers_

    Joined:
    Sep 10, 2017
    Posts:
    98
    Hi, this thread on Data Oriented Technology Stack got me wondering about how this affects DOTS Physics.

    I use DOTS Physics, but I'm not using Entities at all. Will DOTS Physics (along with Burst, Jobs, Math, Collections) keep being compatible, or can we expect significant changes here?

    Cheers
     
  2. TheOtherMonarch

    TheOtherMonarch

    Joined:
    Jul 28, 2012
    Posts:
    866
    DOTS Physics is Entities.
     
  3. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
    To be 100% precise, com.unity.physics package (DOTS Physics) depends on com.unity.entities package (DOTS Entities), so you can't have physics without entities.
     
  4. Baggers_

    Baggers_

    Joined:
    Sep 10, 2017
    Posts:
    98
    @milos85miki thanks, I had forgotten how these packages were tied together.

    It's a shame really as the physics engine is definitely useful without Entities. In our game we use the Entity field in RigidBody as a id into our own data-structures and it works great. We don't use the ECS at all.

    It would be great if Unity were a little more clear on the nature of the upcoming changes, but c'est la vie.