Search Unity

Question Changing template dynamically on Physics Shape?

Discussion in 'Physics for ECS' started by hippocoder, May 19, 2022.

  1. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I'm poking around PhysicsCollider but haven't seen any way I can dynamically set the template in use. What is the expected way to go about doing that?

    Why am I doing this?

    I have thousands of level colliders and I'd like to be able to set them up ahead of time. On some of them, I'd like to change their values at runtime as well. I don't need to change colliders, just their filters or templates.

    Please advise.