wondered if physx still rebuilds the entire world graph when that’s done
and if so, what’s the best way to disable a trigger?
I haven’t tested this explicitly ( @yant could reply better to this), but I have a case where I need to disable and re-enable actual colliders in each frame for certain queries. The method I use is changing the layer in these colliders, run the queries, then restore the original layer. The same approach may be used with triggers. As for what I can tell, this method is essentially free.
1 Like
interesting method, I just freed up a layer so I might try that.
do you know what the overhead would look like in the profiler?
1 Like
I don’t think that changing layers would even appear in the profiler. It’s just changing a flag.
What about the overhead of turning on and off the collider? How do these things show up on the profiler?