Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Network physics hit

Discussion in 'Netcode for GameObjects' started by Jicefrost, Apr 29, 2022.

  1. Jicefrost

    Jicefrost

    Joined:
    May 13, 2019
    Posts:
    40
    Hi all! I creating small prototype with MLAPI have:
    1. Small capsule"player" - network object, rigidbody2d, network rigidbody2d, client network transform, capsule collider 2d and controller script (speed, addforce and so on)

    2. Network manager + U net transport. (server and clients, so no "HOST")


    so 2 players respawn, capsule are "fliyng" on stage trouble is when they are "hit" each other there is no hitforce at all, like they rock hard. Like player hitting wall :( how can I translate to network "hiting"? or may be some another way to do it..
    here youtube short video

    In local version without network on clean rigidbody2d it works perfectly.
     
  2. Jicefrost

    Jicefrost

    Joined:
    May 13, 2019
    Posts:
    40