Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 user-8452 (google) · May 13, 2011 at 06:22 PM · animationmultiplayer

Multiplayer animation

Hi I am trying to make the bootcamp demo into multiplayer.

I am trying to do the animations over network, but they are not played by amination .play()

They are played this way. I have no idea how to add an rpc call to that. Can someone help me out please.

animation["NormalGroup"].weight = uprightWeight * nonAimWeight * groundedWeight * nonRelaxedWeight; animation["RelaxedGroup"].weight = uprightWeight * nonAimWeight * groundedWeight * relaxedWeight; animation["CrouchGroup"].weight = crouchWeight * nonAimWeight * groundedWeight;

     animation["NormalAimGroup"].weight = uprightWeight * aimButNotFireWeight * groundedWeight;
     animation["CrouchAimGroup"].weight = crouchWeight  * aimButNotFireWeight * groundedWeight;

     animation["NormalFireGroup"].weight = uprightWeight * fireWeight * groundedWeight;
     animation["CrouchFireGroup"].weight = crouchWeight  * fireWeight * groundedWeight;

     var runningJump = Mathf.Clamp01(Vector3.Dot(motor.movement.velocity, transform.forward) / 2.0);
     animation["StandingJump"].weight = (1 - groundedWeight) * (1 - runningJump);
     animation["RunJump"].weight = (1 - groundedWeight) * runningJump;

Comment
Add comment · Show 1
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 PrimeDerektive · May 13, 2011 at 07:43 PM 0
Share

where are uprightWeight, fireWeight, groundedWeight and nonRelaxedWeight assigned values?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by roamcel · Aug 04, 2011 at 07:18 AM

What you see is basically the effect of having the 'weight' variables assigned each frame. Since all the animations are enabled at the same time, zeroing their weights will allow their crossfading to prevail over the other animations. I don't know if this is the best approach to multiplayer animation, but if you want to bring that over network, you surely need to look at RPCing the weight calculations, and passing that to the 'others' animation scripts of each client.

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

Answer by Ailos · Nov 28, 2011 at 10:19 PM

I am looking to the BootCamp, but I don't know where are defined "NormalGroup" , for example. Where did they do?

Thanks

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

Answer by Ailos · Nov 28, 2011 at 10:19 PM

In Locomotion System , of course.... :P

I'm sorry jeje...

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

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

Networking Animation problem 1 Answer

Network animations 2 Answers

Photon: Trembling Player 1 Answer

OnSerializeNetworkView Sync problem 2 Answers

Can the animation editor create local rotational data? 3 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