Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

How to allow players to move each other

Discussion in 'Connected Games' started by MWizard, Jun 12, 2018.

  1. MWizard

    MWizard

    Joined:
    Jan 5, 2017
    Posts:
    42
    Howdy! I followed a few tutorials and built a test world with the multiplayer feature. Join works, players are rolling around with each other, it's neat.

    However, I noticed that if I go full force into another player, I will just bounce off of them, or go around them.

    I just started playing with the networking side of things in Unity, so I'm just unfamiliar with what features of the network allow for clients to push each other. Is that something I need to implement with a standalone server or something? (And by standalone I mean either a separate server component for the game, or a separate executable for a standalone)

    Thanks for any directions. Just a hint is all I need to get going, I think. Google has resulted in different questions being answered, but maybe I just couldn't find it.

    EDIT: I'm using Rigidbodies, not Character Controllers.
     
  2. MWizard

    MWizard

    Joined:
    Jan 5, 2017
    Posts:
    42
    I was thinking that maaaybe I just have the interaction be part of the original player controller script? Like "If collided with other collider, add force against self based on speed and mass (magnitude?) and angle. I'll let y'all know if I find anything :)