Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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,135
    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,775
    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,135
    Ya. Using ecb to add/remove shared component.
     
  4. optimise

    optimise

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