Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by McReary · Dec 15, 2016 at 04:19 AM · c#2dphotonphysics2dsynchronization

Photon position syncing

Hello :) ,

I am new to Photon Network scripting and I have, hopefully a little, problem with position synchronization. My game is 1v1, multiplayer, so I need very accurate synchronisation of the projectiles position (max. 15 projectiles at the same time). Despite base script for shooting works fine, in multiplayer, opponent's projectiles spawn at the different position, than it should, so the problem is probably at the Photon sync side. (Photon settings below)

View from the left player: https://s27.postimg.org/x4or6xlcz/left_User.png

View from the right player: alt text

Photon settings: alt text

...I appreciate any kind of help, for additional informations write a comment, I will write back very soon, thx a lot :)

rightuser.png (63.3 kB)
photonoptions.png (31.8 kB)
Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ChristianSimon · Dec 15, 2016 at 09:06 AM 1
Share

Hi,

did you take a look at the Synchronization demo which is included in the PUN package? The demo shows some different ways to handle synchronization. $$anonymous$$aybe you want to pick one of them.

If your projectiles are physics objects you can also take a look at Photon TrueSync from the Asset Store. This however needs some extra time since you have to do some adjustments to your existing source code.

avatar image McReary ChristianSimon · Jan 06, 2017 at 07:44 PM 0
Share

Sorry, It's been year since I didn't reply, but I was trying implement Photon TrueSync into my project and the projectiles finally work! But I have one another question... I read TrueSync documentation and I didn't figured out if is TrueSync good for syncing like 50 blocks, with Rigidbody2D and BoxCollider2D components, too.

avatar image ChristianSimon McReary · Jan 09, 2017 at 08:31 AM 0
Share

Sorry, I'm not very familiar with TrueSync. Please ask your question over here to get detailed and satisfying answers to them.

avatar image McReary · Dec 15, 2016 at 03:49 PM 0
Share

Thx :) , I will take a look, when I get home... I will write the result as well.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

How to add Turn Based to Photon Pun 1 Answer

Checking for collision with 2D objects/sprites 3 Answers

While Moving Left or Right my character falls more slowly. 2 Answers

Is calling OnCollisionEnter2D on allot of GameObjects bad for performance? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges