Question by
DuckWuk · Feb 20 at 02:17 AM ·
c#collisionmultiplayerrigidbody2d
How to make other player phase through others
I have added multiplayer to my game and I was just wondering how can I add it so you can phase or just not be able to push other players because there is a weird thing that happens when you push a player it just keeps rubber banding.
Comment
Answer by Monsoonexe · Feb 21 at 12:13 AM
Collision is calculated based on Layers. You can change how layers collide with each other in ProjectSettings->Physics and scroll down to the Collision Matrix. You might also consider trigger colliders, which detect OnTriggerEnter
but don't actually move in response to forces.