I’m trying to create a toggle ability where the player can walk through objects.
I managed to most of it, but the camera is acting weird when I’m walking through such objects (e.g. a building),
because the camera is set to collide with it.
However, there are many objects like that in the world, and I can’t change it on a per-object basis.
How can I change that for all objects for a specific object type (collision object type), in runtime?
p.s.
I don’t mind doing it in c++