Search Unity

Bug Changes to PhysicsExclude component

Discussion in 'Physics for ECS' started by optimise, Apr 23, 2022.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    Hi @JosepMariaPujol. I would to know what is the reason behind it to deprecate PhysicsExclude component and change to PhysicsWorldIndex shared component? Currently this changes introduce extreme regression that shared component still cannot support burst compilation and will make most of my systems super slow since I need to add .WithoutBurst(). Can u on hold this decision until shared component able to support burst compilation?
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
    Is the issue adding PhysicsWorldIndex when you want to put them back into the simulation?

    (Bit late to put something on hold that's already shipped)
     
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    Ya. Using ecb to add/remove shared component.
     
  4. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    @JosepMariaPujol I think at very least dun deprecate PhysicsExclude component first until PhysicsWorldIndex able to be burst compiled.