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 Tanoshimi2000 · Nov 20, 2015 at 02:07 PM · networkingcharactercharactercontrollerlatency

What to send when networking?

So if I'm taking an existing game, and making it networked, what's the best way to do that? I know I can send the transform, and then the network clones will be in the correct position and rotation, but all of their other properties (specifically, animation) will not be accurate. I can send the controller and then have the local copy recreate the movements of the network clone, but with the network latency it may not sync (I can sync it by also sending the transform).

Obviously the less I send over the network, and the more the client calculates, the better for performance. But if I have a standard FPS guy, the transform alone doesn't tell me if he's running, ducking, walking, climbing, shooting, etc. But will the character controller be enough to have the clients in sync without too much network traffic?

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
2
Best Answer

Answer by meat5000 · Nov 20, 2015 at 02:25 PM

Its in the docs!

http://docs.unity3d.com/Manual/UNetConverting.html

Enjoy.

Comment
Add comment · Show 4 · 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 Tanoshimi2000 · Nov 20, 2015 at 02:29 PM 0
Share

Nice. I guess I just need to brush up on the State Synchronization. I've done all those steps based upon a youtube tutorial, except the State Synchronization. I guess that's the piece of the puzzle I'm missing.

avatar image meat5000 ♦ Tanoshimi2000 · Nov 20, 2015 at 03:09 PM 0
Share

Indeed, Network Animator is a cool component, but you should only use it where its really necessary in order to reduce network through-put.

Where animation is based on Parameters for speeds and other variables found in a script it is often not required as the animations will be synced based on the script information that is SyncVar'd anyway :)

avatar image Tanoshimi2000 meat5000 ♦ · Nov 20, 2015 at 03:18 PM 0
Share

So you think for a helicopter who's rotor speeds are controlled by a variable, or a racing game where the tires need to be turned to match what the transform has should be done through Sync Variables, but which animation and what frame we're on for a human playing in an FPS should be done with network animation?

Just trying to get a grip on how to make A and Client's A look the same.

Show more comments

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

48 People are following this question.

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

Related Questions

second character controller ??? 4 Answers

Help with animation... Please 2 Answers

2D sprite rotating in 3D plane 0 Answers

How do I fix my player jumping code? 2 Answers

Character Controller/Motor Ground Delta 0 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