I've been searching for a few hours now to no avail in trying to find a workable solution. (Also wanted to note that I'm very new to gamedev)
I'm making a 2D Multiplayer Platformer, and I would like to prevent players from being able to push each other.
Currently using Unity 6000.3.10f1 with the use of MirrorNetworking and UnityInputSystem
This is the closest I've seen to a solution, but unfortunately I found out that AINavmesh doesn't work for 2D https://community.gamedev.tv/t/how-to-make-rigidbody-gameobjects-block-each-other-without-being-able-to-be-pushed-by-others/90640
End Goal:
- Players using Rigidbody2D + Box Collider2D
- Players can't push each other
- Players can collide
- BoxCollider2D platforms (floors/walls) that cannot be moved
- BoxCollider2D objects with Rigidbody2D that can be pushed by players/other rigidbodies
Currently (See video for demonstration):
- Players using Rigidbody2D + Box Collider2D
- Players can push each other
(I'll send my player script in a moment since it can't send it in one message)
Please let me know if I should post this somewhere else or if you need any more information