Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Issues with PhysicsWorldIndex

Discussion in 'Physics for ECS' started by argibaltzi, Nov 9, 2023.

  1. argibaltzi

    argibaltzi

    Joined:
    Nov 13, 2014
    Posts:
    220
    Hello
    I am creating a new entity and immediately remove its PhysicsWorldIndex component as i do not want it to take part in the simulation.

    However i have a problem where the entity disappears from the screen and i noticed that the LocalToWorld matrix seems to stop getting updated.

    When i add back the PhysicsWorldIndex things go back to normal.

    Is this a bug or is it supposed to work like that??
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,737
    Probably has the physics smoothing component still which overrides the local to world calc I think