Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Crazy Noa · Jul 25, 2015 at 03:50 PM · physicsnetworkingperformancebandwidth

Syncing data from client to server in 5.1 networking

I'm trying to implement multiplayer in an existing game using the new networking system. It's a first person beat 'em up (sort of) where you try to survive for as long as possible through waves of enemies. We're aiming for around 200 enemies of various types per round. Most of these are very basic and act as a kind of background noise for the more complicated encounters. They mostly wander around the stage using the navmesh, but use physics when attacking and being attacked. I use a heavily compressed sync system when they wander to save bandwidth, but the physics attacks need to be precise and clear. My idea is to give the client that is attacking/being attacked temporary authority over the object and then use a network transform or something similar to send the position data to the server/other clients. This way the affected player sees exactly what is happening and the other players (who are probably off doing something else) get a decent approximation. Kind of like how each player has local authority over themselves, but extended to certain rigidbodies. However, with the server authoritative system in Unity 5.1 I haven't been able to find a way to do this. SyncVars only send from server to client and commands don't work from objects that aren't players. I could set the enemies to temporarily become players, but that seems extremely clunky and weird. Is there an easier way to do it?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by $$anonymous$$ · Jul 27, 2015 at 04:35 AM

For now you cant send commands to server from non player owned objects, but you can use clientrpcs. However in 5.2 (september) you will actually be able to send commands to server from non player owned objects.

see : http://unity3d.com/unity/beta/unity5.2.0b1 (down in the improvements section of networking)

Comment
Add comment · Show 1 · Share
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 Crazy Noa · Jul 27, 2015 at 08:05 AM 0
Share

Thanks, that seems like exactly what I was looking for. $$anonymous$$ight as well just wait until then and do things properly once it's out.

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

2 People are following this question.

avatar image avatar image

Related Questions

[UNET]Spring Joints and Networking. possibly a bug? 0 Answers

Add 2d rigidbodies to moving objects to increase performance or not? 1 Answer

Detecting Input on ~100 Objects 2 Answers

Fastest primitive collider 1 Answer

Authoritative Server: Run physics step manually? 1 Answer


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