Unity 3D C# Basic Ball Example

acirmustafa
edited September 2014 in DotNet
Hello Guys;

I am looking for a simple example of multiplayer ball.I tried to write but it doesnt work sync (i looked box example)

Can someone please tell me how i do or send example? :?:

Thanks

Comments

  • Hi,

    If you use Photon Unity plugin for multiplayer than try samples provided with plugin package. You can find them in project after plugin import.
  • Hello;

    Thank you for your answer.

    I tried box example. I added sphere.

    İmage > http://prntscr.com/4hn6e4

    Sphere doesnt work sync. I can send project.

    Can you help me?
  • Hi,

    How do you test synchronization?
    Try first as little components as possible.
    Create sphere and add only PhotonView and may be script for controlling sphere position.
  • Hello;

    Thanks for your reply vadim.

    My problem like this : http://www.youtube.com/watch?v=kdbkqnGqkT4 or http://www.youtube.com/watch?v=Iz-8XtJZV5c&feature=youtu.be]

    I looked for similar problems and I saw that most people have the same problem.
    There are a total of 5 pieces demo for Unity but i didnt see rigidbody example. (asset store > photon unity networking)
    I tried network rigiddody script but nothing has changed. ( >> http://prntscr.com/4jsu5f)
    I think you should create a document that resolves this problem on exitgames web site, because he's trying to solve this problem, dozens of people.
    I'm looking for three days and I couldn't find a working example yet.
  • First of all, ''Sphere doesnt work sync"' means sphere moves on one client but does not on another.
    Video shows sync'ed objects but sync is not perfect for collisions. This is common problem for network games and there is no generic solution for it. Each case need it's own approach. For instance, It's possible to run all logic on one client only and notify others about objects positions. But object movements may be not responsive enough for others clients players.
    Other approach discussed: viewtopic.php?f=17&t=5169