Long story short: I’m working on a multiplayer game where there should be debris with rigid body on the client-side. The debris shall be able to get pushed/moved by objects and effects, but the debris shall not be able to block or hinder any movement - the debris is just there for the visual effect.
For example, if a player is moving into a “box” debris, the box should just be pushed aside/forward as a normal rigid body would, but the box should not hinder or slow down the motion of the player. Even when pushed into a wall the player should rather move through the box than getting blocked by it. If a projectile hit the box, the box should fly but the projectile remain unchanged.
What is the easiest way to achieve this? Is it enough with some layer and rigid body setup or does it require some more extravagant solution?
I was thinking about putting “debris” in its own layer and remove collision with e.g. players/projectiles, and instead add scripted effects to players/projectiles(or the debris rather) that will add some physics effects to the debris on collision trigger / raycast.