• 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 JesterMaster · Dec 30, 2015 at 08:27 AM · animationcollisionphysicsragdoll

Character animation/ragdoll problem

Hi

I have 3d character that uses legacy animations. When it dies it has die animation. But if charater dies in staircase or slope it sinks inside objects or "hangs" in air.

I have added ragdoll to the character and now when the die animation ends it behaves many times normall. But problem is if enemy dies near walls or slopes this animation will drive the charater inside the wall or floor collider before the ragdoll effect kicks in. So when die animation ends it bounces the ragdoll out from the collider or sometimes the charater gets stuck inside the object and limbs get stretched etc.

How can I prevent this from happening?

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
0

Answer by NGC6543 · Dec 30, 2015 at 09:34 AM

Unity's Animator Controller(Mecanim) has an option "Animate Physics". But you are using the legacy animation component so this would not be an option.

If the character has a Rigidbody component and is not kinematic, then probably you could attach primitive colliders to bones(for example on head, chest, fore arms etc) and they might being pushed out when the die animation is in action, I think.

Comment
Add comment · Show 2 · 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 JesterMaster · Dec 30, 2015 at 10:19 AM 0
Share

I have colliders in every joint. Is it possible to stop the die animation and start the rigidbody effect whet the character collides anyobject. This way I could run the die animation as far as possible?

avatar image NGC6543 JesterMaster · Dec 30, 2015 at 03:51 PM 0
Share

hi @jester$$anonymous$$aster, I have an experince with the Animator Controller but I'm not an animation guru so I can't tell exactly waht to do, sorry. The question you had asked via comment... If colliders are attached like that, probably a script that is attached to the root gamepbject can detect wether one of its colliders had collided to a wall or not(if walls are in a separate collision Layer) and from that event I think you can enable the ragdoll effect accordingly.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Help with 2D Hit Detection! 0 Answers

Questions about physics based combat (animation + collision, hinge joints++) 0 Answers

Getting collisions when using an animation to move an object? 2 Answers

Animate Physics doesn't work 0 Answers

Collision with moving door 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