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 Ryty · Jan 29, 2014 at 08:31 PM · rigidbodybugmovement scriptragdollcharacter controlling

Rigidbody causes ragdoll character to fly

Hi,

I've created character in Blender, rigged it, animated in Mecanim and wrote scripts to control the character. Everything works great, but when I added ragdoll something went wrong. When character is in ragdoll state, just lying on the ground, it's okay, but when I try to set the character to be playable, it just flies away to its' right hand direction. By searching the net and checking differenct setups, I've pinpointed the problem to rigidbody component of the character. When 'Is Kinematic' bool is true, then the problem doesn't occur, but when it's not, then the character flies wildly. It wouldn't be a big deal, but I need the rigidbody to move my character around, as I use it in player controller script. Any idea how to fix the problem without deleting the whole rigidbody component?

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

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by AkaLuuk · Mar 15, 2018 at 11:29 AM

Have you disabled the Nav Mesh Agent on the Ragdoll object? It worked for me!

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
1

Answer by artwhaley · Feb 13, 2019 at 03:47 AM

I know I'm necroing a post from ages ago, but i just spent 2 days trying to find the answer to the same problem and this was the top result, but none of the replies worked for me. So here's what did -

I was having crazy collisions between my 'character controller' and my individual bone colliders for the rag doll. disabling collisions in the character controller didn't help. Disabling the character controller didn't help!

What finally helped - putting the top level game object where the character controller, navmesh agent, rigidbody, and behavior scripts go on one layer, and moving all of the child elements - the skeleton with the ragdoll colliders - to a different layer, then disabling collisions between them. At the top of my behavior script I added Physics.IgnoreLayerCollision(9, 10);

That was the missing bit for me that none of the 5 minute tutorials that make it look super easy mentioned! Hope it helps!

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 Headworker · Jan 29, 2014 at 08:44 PM

From my adventures into ragdoll wiring it could be the following:

Your character works before you made him ragdoll/non kinematic? The problem occurs if you want to switch back?

It can either be a missing transition from the ragdolled "lying" state to one of your animation state ("idle" for instance).

Other possiblity : Creating a ragdoll actually adds colliders and joints (afaik), another level of animation hierachy. if you switch kinematic off, these colliders could be in interfering with your joint setup. Try to deactivate the ragdoll hierachy (all the colliders and joints which make up the ragdoll) while the setup is kinematic.

Comment
Add comment · Show 3 · 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 Ryty · Jan 29, 2014 at 10:24 PM 0
Share

Well, actually my character is non-kinematic and working well being so. I would make it kinematic if it wasn't for scripts which require the rigidbody's 'Is $$anonymous$$inematic' bool to be false.

avatar image sdgd Ryty · Jan 29, 2014 at 10:25 PM 0
Share

@Ryty please don't post comment as an answer.

this is your final warning next time I'll reject your answer.

avatar image Headworker · Jan 30, 2014 at 11:04 AM 0
Share

sdgd: ?

Ryty: Did you check for interfering ragdoll colliders? try to put your setup on a simple cube for instance, so you can debug the rigidbody behaviour in a simple environment.

avatar image
0

Answer by splendidTRUSTe · May 26, 2014 at 06:17 PM

make to mass 0 or -1

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

23 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

Related Questions

How can I stop a rigidbody (Ragdoll) character from colliding with the Character Controller capsule? 1 Answer

How to disable Rigidbody component completely 6 Answers

Collision between rigid body zombie characters. 1 Answer

How to walk stairs with active ragdoll made of rigidbodies? 1 Answer

Problems with ragdolls and no gravity 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