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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Disable colldier

Discussion in 'DOTS Dev Blitz Day 2022 - Q&A' started by optimise, Dec 8, 2022.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,070
    Any plan to make PhysicsWorldIndex to be Enableable component that able to enable/disable component which causing structural changes since currently I need to change the value of PhysicsWorldIndex to disable collider and it causing structural changes?
     
  2. daniel-holz

    daniel-holz

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    236
    As an alternative, have you thought about modifying the Collider and setting its collision response to CollisionResponsePolicy.None via Collider.SetCollisionResponse()?
     
    optimise likes this.
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,070
    Not yet. Does this solution able to avoid structural changes? And also since I use dots netcode I guess this solution also can't sync for both client and server?
     
  4. daniel-holz

    daniel-holz

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    236
    Yes, it should avoid structural changes.

    For netcode sync, I think the reply here also applies in this case.