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 ComeSweetDeath · Aug 30, 2014 at 11:04 AM · animatormechanimcurves

"GravityWeight" curve in animator is not affecting the rigidbody's gravity?

I'm following Unity's Mechanim tutorial and have ran into a trouble where the "GravityWeight" curve set up as shown in https://www.youtube.com/watch?v=Xx21y9eJq1U at 31:13, is not affecting my character's gravity.

alt text

What ends up happening in the scene is: the character jumps, the collider height is reduced but gravity is not affected, and as a result the character will sink into the ground because the collider was shortened for a moment.

alt text

Here is the set up for the jumping animation that I'm using in my scene. Note that I'm not using any scripts to access the "GravityWeight" curve because according to the video its internal or something.

I've also checked other people's posts on the same problem, but after trying some stuff that they suggested the problem is still here. http://answers.unity3d.com/questions/500754/gravityweight-for-mecanim-jump-animation-following.html http://forum.unity3d.com/threads/mecanim-and-gravityweight.162233/

ques.png (87.4 kB)
2q.png (95.9 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 ComeSweetDeath · Aug 31, 2014 at 01:50 AM 0
Share

Hi I'm still struggling and trying to find the problem. https://www.dropbox.com/s/jcwhmlzra1lvsnp/ProblemPackage.unitypackage?dl=0 Here is a 3mb Unity package containing the assets I'm working with, if anyone wouldn't $$anonymous$$d taking a look for me?

Basically, when you press SpaceBar to jump, the capsule collider is shrunk/shortened vertically and sinks into the ground, but I want its gravity to be affected by the gravityWeight curve just like in the $$anonymous$$echanim tutorial :(

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Arkade · Jun 30, 2017 at 07:27 PM

(realise this is quite old but since it was the first hit when I searched and it gave me a clue to the answer, here's the answer...)

"gravityWeight" not "GravityWeight" -- it's case sensitive.

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 tcz8 · Dec 23, 2019 at 10:41 PM 0
Share

I just read the exact opposite. That its GravityWeight NOT gravityWeight... oh boy.

EDIT: Just confirmed this works for me with "GravityWeight" in 2018.4.13f1

Also if you use blendtrees, see my post here:
https://forum.unity.com/threads/animator-gravity-weight.651985/

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

24 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

Related Questions

Continuously Play Animation Forwards and Backwards with Mechanim 0 Answers

How do you remove root animation curves? 0 Answers

How to nest Animation file in an Animation Controller? 1 Answer

How to animate the same object in the same time using built-in Animator? (for different properties, of course) 1 Answer

Changing the default tangent mode for editing animation curves in Unity 2018.3 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