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 /
  • Help Room /
avatar image
0
Question by Zardify · Dec 29, 2020 at 02:52 PM · animatormecanimblendingblend treecurves

Blend Tree stuck at half way when controlled by curve

Hi!

I have a setup (screenshot) where I have a float parameter called LeftFootZ that is controlled by curves on all animations that move the character.


For example: Walk, Run and all other movements have this as a curve and they approximate the left foot's "forwardness" from -1 to 1. I then would like to use it for my 180 turn blend tree to detect and end at proper foot placements, but the blend gets stuck. The FootBlendTree setup Inspector of FootBlendTree

I suspect it has to do with the fact that even these 180 turn animations have the curve at a constant -1 or 1 value depending on which foot they start and end on. (Animations in RightFootTurns have the value locked at -1, LeftFootTurns have it at 1.) The reason of this is, that I can have different exit transitions based on which foot the turn was on.


Here's how I know it's stuck; Both lines coming from FootBlendTree should actually be blue-ish on the screenshot because the value is 0. When I change the LeftFootZ slider on the screenshot the line coloring doesn't change at all. It always goes to the top RightFootTurns blend tree (-1). Even at runtime, I can see the LeftFootZ value - always, incorrectly - going to, and - correctly - getting stuck on it for the duration of that animation. But it will never go to LeftFootBlendTree. Fun fact, the animation in preview looks like it's always in a 50% blend. At runtime however it's always the RightFootTurns (-1) one.


Here's what I'd expect: Player is walking, LeftFootZ just goes from -1 to 1 and back. When I fire a trigger, and it transitions into RapidTurn.FootBlendTree it sees for example a value of 0.5 and because It's closer to 1 than -1, goes to LeftFootTurns which in turn increases the value to a constant 1. Then it will exit and continue to go from 1 to -1 and back because of the walk animation.

Now, this is all happening, but it never seems to consider LeftFootZ and just goes into RightFootTurns every single time.


Does anyone know anything about this phenomenon?

I'd much appreciate if you have any input!

Thank you in advance!

blend1.jpg (109.7 kB)
blend2.jpg (29.4 kB)
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 Zardify · Jan 01, 2021 at 09:46 AM 0
Share

I have since got around this issue by replacing the FootBlendTree with a gazillion transitions... typical. I'm however still very much interested as to why the Blend Tree couldn't handle this use-case.

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

191 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 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 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 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

number of scripts that can be added as animation properties 0 Answers

Animator: change parameter when exiting blend tree. 0 Answers

Character controller running stop animation transition 0 Answers

How to make players upper body look at the mouse direction, while lower body plays forward,backward or side ways strafe accordingly ? 0 Answers

How to call 'Animator.Play' without wait for FixedUpdate? 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