Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Help Wanted Collision handling of 2 networked objetcs

Discussion in 'Netcode for GameObjects' started by Erenquin, Aug 14, 2021.

  1. Erenquin

    Erenquin

    Joined:
    Apr 9, 2018
    Posts:
    135
    Hello,
    I started creating a small networked game.
    I currently only have a host and a client (2 players, starting small).

    I have a main player object and a network variant which adds the NetworkTransform, etc ...

    I implemented a physics based movement which work well, both with networked and non-networked players.

    But I have an issue when colliding.
    With the basic not networked players, the collision is as I expect it.

    But with the 2 networked players, the non moving one is like a wall, it does not react at all, while the moving one kind of jumps and start flying in the air.
    Even if I hit a small low level wall (static collider) it does not react like that, it just stops.

    I added a NetworkRigidboy like suggested here: https://forum.unity.com/threads/mlapi-rigidbody.1091329/, but it does not help. I see values in the component, but actual behavior of the objects does not change.

    Thanks for the help :)
     
unityunity