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
1
Question by eagle4 · Jan 27, 2012 at 01:00 PM · animationrunblendpassarms

Blending just the arms animation

I have a character that can run and stop to an idle, but I'd like him to pass a ball when you press a key. is there a way i can have the passing animation blend to just the arms so that if you're passing whilst running or while stationary things look fine?

Very new to blending animations, so if you could just let me know if its possible and point me in the right direction that would be super awesome

Thanks

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

Answer by Bunny83 · Jan 27, 2012 at 01:21 PM

Sure, all you need is AnimationState.AddMixingTransform and specify the bone / Transform.

Comment
Add comment · Show 5 · 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 eagle4 · Jan 27, 2012 at 01:39 PM 0
Share

Fantastic. Awesome. Thanks mate. Just the thing Ii was looking for. now just a quick follow up, if I declare the Add$$anonymous$$ixingTtransform as in the example

 function Start () {
     // Adds a mixing transform using a path ins$$anonymous$$d
     var mixTransform : Transform = transform.Find("root/upper_body/left_shoulder");
     animation["wave_hand"].Add$$anonymous$$ixingTransform(mixTransform);
 }

Do I just then crossfade in the animation wave_hand as if it was any other animation? but cause I've set up it as an Add$$anonymous$$ixingTransform it will only mix in the joints I tell it?

avatar image Owen-Reynolds · Jan 27, 2012 at 02:43 PM 0
Share

Yes. The wave_hand animation now only controls the shoulder/arm/hand bones. Commonly you'll put a partial (Add$$anonymous$$ixT) animation on a higher layer and Play/Xfade. Then, for example, Walk playing on a lower layer will control the rest of the bones. Even better, when hand_wave stops, Walk will go back to controlling all the bones.

avatar image Bunny83 · Jan 27, 2012 at 03:24 PM 0
Share

Yes, i forgot to mention the layers ;) You usually want to run both animations at the same time, just the upper / arm animation overrides the upper / arm part.

avatar image eagle4 · Jan 27, 2012 at 09:46 PM 0
Share

from the layers example, its putting the run and walk on the same layer, from this would it be smart to have most of my animations that i want to be playing fully on that layer, but then have animations like the wave_hand on the 2nd layer? or would it be smart to have every animation on a seperate layer?

avatar image Bunny83 · Jan 28, 2012 at 02:08 AM 0
Share

"Similar" animations should be on the same layer. Functions like Crossfade always work on one layer so they stop / fade out any other animation on this layer and start / fade in a new one. Layers are mostly for animations that should be played at the same time and be mixed together in some way.

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

6 People are following this question.

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

Related Questions

play animation when moving,and idle animation when stand still 1 Answer

Animation.Blend with Animator? 0 Answers

Can the animation editor create local rotational data? 3 Answers

Way to play two animations at once? 6 Answers

animation arms and berreta controll 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